mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1199559 remove now unused SetRawChannelContents r=padenot
This commit is contained in:
parent
5c78f5c742
commit
97048994c0
@ -196,15 +196,6 @@ AudioBuffer::CopyToChannel(JSContext* aJSContext, const Float32Array& aSource,
|
||||
aSource.Data(), length);
|
||||
}
|
||||
|
||||
void
|
||||
AudioBuffer::SetRawChannelContents(uint32_t aChannel, float* aContents)
|
||||
{
|
||||
MOZ_ASSERT(!GetWrapperPreserveColor() && !mSharedChannels,
|
||||
"The AudioBuffer object should not have been handed to JS or have C++ callers neuter its typed array");
|
||||
JS::AutoCheckCannotGC nogc;
|
||||
PodCopy(JS_GetFloat32ArrayData(mJSChannels[aChannel], nogc), aContents, mLength);
|
||||
}
|
||||
|
||||
void
|
||||
AudioBuffer::GetChannelData(JSContext* aJSContext, uint32_t aChannel,
|
||||
JS::MutableHandle<JSObject*> aRetval,
|
||||
|
@ -103,12 +103,6 @@ public:
|
||||
*/
|
||||
ThreadSharedFloatArrayBufferList* GetThreadSharedChannelsForRate(JSContext* aContext);
|
||||
|
||||
// This replaces the contents of the JS array for the given channel.
|
||||
// This function needs to be called on an AudioBuffer which has not been
|
||||
// handed off to the content yet, and right after the object has been
|
||||
// initialized.
|
||||
void SetRawChannelContents(uint32_t aChannel, float* aContents);
|
||||
|
||||
protected:
|
||||
AudioBuffer(AudioContext* aContext, uint32_t aNumberOfChannels,
|
||||
uint32_t aLength, float aSampleRate,
|
||||
|
Loading…
Reference in New Issue
Block a user