Audio Data API: Difference between revisions

Jump to navigation Jump to search
Line 248: Line 248:
===== Writing Audio =====
===== Writing Audio =====


It is also possible to setup an audio element for raw writing from script (i.e., without a ''src'' attribute).  Content scripts can specify the audio stream's characteristics, then write audio samples using the following methods:
It is also possible to setup an <audio> element for raw writing from script (i.e., without a ''src'' attribute).  Content scripts can specify the audio stream's characteristics, then write audio samples using the following methods:


<code>mozSetup(channels, sampleRate, volume)</code>
<code>mozSetup(channels, sampleRate, volume)</code>
Confirmed users
656

edits

Navigation menu