Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 104421 of NotifyAudioAvailableEvent

  • Revision slug: DOM/NotifyAudioAvailableEvent
  • Revision title: NotifyAudioAvailableEvent
  • Revision id: 104421
  • Created:
  • Creator: jswisher
  • Is current revision? No
  • Comment one or more formatting changes

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 id="Attributes">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><code><a class="new " href="../../../../en/boolean" rel="internal">Float32Array</a></code></td> <td>The <strong>frameBuffer</strong> attribute contains a typed array (<code>Float32Array</code>) 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><code>time</code></td> <td><code>float</code></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" id="See_also

"><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