Revision 104420 of NotifyAudioAvailableEvent

  • Revision slug: DOM/NotifyAudioAvailableEvent
  • Revision title: NotifyAudioAvailableEvent
  • Revision id: 104420
  • Created:
  • Creator: sebmozilla
  • Is current revision? No
  • Comment page created, 133 words added

Revision Content

This interface defines the event for audio elements triggered when the Audiobuffer is full.

Attributes

Attribute Type Description
frameBuffer Float32Array The frameBuffer attribute contains a typed array (Float32Array) with the raw audio data (32-bit float values) obtained from decoding the audio (e.g., the raw data being sent to the audio hardware vs. encoded audio). This is of the form [channel1, channel2, ..., channelN, channel1, channel2, ..., channelN, ...]. All audio frames are normalized to a length of channels * 1024 by default, but could be any length between 512 and 16384 if the user has set a different length using the mozFrameBufferLength attribute.  Read only.
time float The time attribute contains a float representing the time in seconds of the first sample in the frameBuffer array since the start of the audio track.

See also
Edit section

Revision Source

<p>This interface defines the event for audio elements triggered when the Audiobuffer <span class="lang lang-en">is full.<br>
</span></p>
<h2>Attributes</h2>
<div id="section_2">
<table class="standard-table"> <tbody> <tr> <td class="header">Attribute</td> <td class="header">Type</td> <td class="header">Description</td> </tr> <tr> <td><code>frameBuffer</code></td> <td><a class="new " href="../../../../en/boolean" rel="internal"><strong>Float32Array</strong></a></td> <td>The <strong>frameBuffer</strong> attribute contains a typed array (<strong>Float32Array</strong>) with the raw audio data (32-bit float values) obtained from decoding the audio (e.g., the raw data being sent to the audio hardware vs. encoded audio). This is of the form [channel1, channel2, ..., channelN, channel1, channel2, ..., channelN, ...]. All audio frames are normalized to a length of channels * 1024 by default, but could be any length between 512 and 16384 if the user has set a different length using the <strong>mozFrameBufferLength</strong> attribute.  <strong>Read only.</strong></td> </tr> <tr> <td>time</td> <td>float</td> <td>The <strong>time</strong> attribute contains a float representing the time in seconds of the first sample in the <strong>frameBuffer</strong> array since the start of the audio track.</td> </tr> </tbody>
</table>
</div>

<h2 class="editable"><span>See also</span>
<div class="editIcon"><a href="../../../../en/nsIDOMEvent#" style="visibility: hidden;" title="Edit section"><span class="icon"><img alt="Edit section" class="sectionedit" src="../../../../skins/common/icons/icon-trans.gif"></span></a></div>
</h2>
Revert to this revision