gecko/content/media/webaudio
Ehsan Akhgari 697bec41a5 Bug 793294 - Implement AudioBuffer; r=bzbarsky,smaug
This is the full implementation of the AudioBuffer object.  There are
two ways to create these objects from an audio context and this patch
implements only one of them.

The construction of the AudioBuffer object is a two step process: the
object should be created with operator new first, and then
InitializeBuffers should be called on it.  InitializeBuffers is
fallible, because it uses the JS API to create the underlying typed
arrays, but that's fine, since the length of the buffers comes from web
content, and we don't want to use infallible allocations for those
anyways.

We hold on to the JS objects from the C++ implementation, and trace
through all of those objects, so that a GC does not kill those object
without us knowing.

The buffer should be possible to manipulate from both C++ and JS, and
the C++ object probably needs to support a set of methods for the C++
callers at some point.
2012-09-25 17:58:50 -04:00
..
test Bug 793294 - Implement AudioBuffer; r=bzbarsky,smaug 2012-09-25 17:58:50 -04:00
AudioBuffer.cpp Bug 793294 - Implement AudioBuffer; r=bzbarsky,smaug 2012-09-25 17:58:50 -04:00
AudioBuffer.h Bug 793294 - Implement AudioBuffer; r=bzbarsky,smaug 2012-09-25 17:58:50 -04:00
AudioBufferSourceNode.cpp Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky 2012-09-21 11:33:03 -04:00
AudioBufferSourceNode.h Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky 2012-09-21 11:33:03 -04:00
AudioContext.cpp Bug 793294 - Implement AudioBuffer; r=bzbarsky,smaug 2012-09-25 17:58:50 -04:00
AudioContext.h Bug 793294 - Implement AudioBuffer; r=bzbarsky,smaug 2012-09-25 17:58:50 -04:00
AudioDestinationNode.cpp Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky 2012-09-21 11:33:03 -04:00
AudioDestinationNode.h Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky 2012-09-21 11:33:03 -04:00
AudioNode.cpp Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky 2012-09-21 11:33:03 -04:00
AudioNode.h Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky 2012-09-21 11:33:03 -04:00
AudioSourceNode.cpp Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky 2012-09-21 11:33:03 -04:00
AudioSourceNode.h Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky 2012-09-21 11:33:03 -04:00
EnableWebAudioCheck.cpp
EnableWebAudioCheck.h Bug 792646 - Implement the skeleton of Web Audio source and destination nodes; r=bzbarsky 2012-09-21 11:33:03 -04:00
Makefile.in Bug 793294 - Implement AudioBuffer; r=bzbarsky,smaug 2012-09-25 17:58:50 -04:00