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

Jump to navigation Jump to search
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'''.  ''Note:'' this size may change in future versions of this API in order to more properly deal with sample rate and channel variations.


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

Navigation menu