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 384091 of NotifyAudioAvailableEvent

  • Revision slug: DOM/NotifyAudioAvailableEvent
  • Revision title: NotifyAudioAvailableEvent
  • Revision id: 384091
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

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.

Revision Source

<p>This interface defines the event for audio elements triggered when the Audiobuffer is full.</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><a href="/en-US/docs/JavaScript/Typed_arrays/Float32Array"><code>Float32Array</code></a></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.&nbsp; <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>
Revert to this revision