зеркало из https://github.com/mozilla/gecko-dev.git
1f0804852a
The way we pass in AudioDataValue arrays into AudioData is non-uniform: sometimes we have nsAutoArrayPtrs, sometimes we don't, and it's not immediately obvious from the function signature of the constructor that we're actually taking ownership of this array. Let's fix that by using UniquePtr<AudioDataValue[]> smart pointers to hold the data prior to creating AudioData values, and for passing in to AudioData's constructor. Using standard-er C++ things instead of our homegrown ones is a good thing. |
||
---|---|---|
.. | ||
WaveDecoder.cpp | ||
WaveDecoder.h | ||
WaveReader.cpp | ||
WaveReader.h | ||
moz.build |