Labs/Jetpack/JEP/18: Difference between revisions

No edit summary
 
Line 80: Line 80:
</pre>
</pre>


The callback receives a byte array and the number of samples contained in that array. The array consists of PCM float stereo samples at a frequency of 44000Hz.
The callback receives a byte array and the number of samples contained in that array. The array consists of PCM float stereo samples at a frequency of 44000Hz (pretty high-quality audio!).
 
We're working on adding support for re-encoding this byte stream (before or after manipulation) back into an OGG/Vorbis file. Check out http://hg.mozilla.org/labs/jetpack/file/tip/components/experimental/audio/AudioEncoder.cpp if you want to help!
Confirmed users
188

edits