Audio Data API: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 27: Line 27:
===== Version =====
===== Version =====


This is the second major version of this API (referred to by the developers as audio13)--the previous version is available here.  The primary improvements and changes are:
This is the second major version of this API (referred to by the developers as audio13)--the [[Audio Data API 1|previous version is available here]].  The primary improvements and changes are:


* Removal of '''mozSpectrum''' (i.e., native FFT calculation) -- will be done in JS now.
* Removal of '''mozSpectrum''' (i.e., native FFT calculation) -- will be done in JS now.
* Added WebGL Arrays (i.e., fast, typed, native float arrays) for the event framebuffer as well as '''mozWriteAudio()'''.
* Added WebGL Arrays (i.e., fast, typed, native float arrays) for the event framebuffer as well as '''mozWriteAudio()'''.
* Changed '''mozWriteAudio()''' to only write as much as can be written to the audio hardware without blocking, and to return the number of samples written.
* Native array interfaces instead of using accessors and IDL array arguments.
* Native array interfaces instead of using accessors and IDL array arguments.
* No zero padding of audio data occurs anymore.  All frames are exactly 4096 elements in length.
* No zero padding of audio data occurs anymore.  All frames are exactly 4096 elements in length.
Confirmed users
656

edits

Navigation menu