User:David.humphrey/Audio Data API 2: Difference between revisions

Line 239: Line 239:
</pre>
</pre>


The '''mozFrameBuffer''' attribute contains a typed array (Float32Array) and the raw audio data (float values) obtained from decoding a single frame of audio.  This is of the form <nowiki>[left, right, left, right, ...]</nowiki>.  All audio frames are normalized to a length of 4096.
The '''mozFrameBuffer''' attribute contains a typed array ('''Float32Array''') and the raw audio data (float values) obtained from decoding a single frame of audio.  This is of the form <nowiki>[left, right, left, right, ...]</nowiki>.  All audio frames are normalized to a length of 4096.


The '''mozTime''' attribute contains an unsigned integer representing the time in milliseconds since the start.
The '''mozTime''' attribute contains an unsigned integer representing the time in milliseconds since the start.
Confirmed users
656

edits