mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
decodeAudioData
This commit is contained in:
parent
e0e1141e74
commit
b87fc17b4b
3 changed files with 125 additions and 20 deletions
|
@ -12,8 +12,8 @@ enum AudioContextState {
|
|||
"closed"
|
||||
};
|
||||
|
||||
// callback DecodeErrorCallback = void (DOMException error);
|
||||
// callback DecodeSuccessCallback = void (AudioBuffer decodedData);
|
||||
callback DecodeErrorCallback = void (DOMException error);
|
||||
callback DecodeSuccessCallback = void (AudioBuffer decodedData);
|
||||
|
||||
[Exposed=Window]
|
||||
interface BaseAudioContext : EventTarget {
|
||||
|
@ -27,9 +27,9 @@ interface BaseAudioContext : EventTarget {
|
|||
[Throws] AudioBuffer createBuffer(unsigned long numberOfChannels,
|
||||
unsigned long length,
|
||||
float sampleRate);
|
||||
// Promise<AudioBuffer> decodeAudioData(ArrayBuffer audioData,
|
||||
// optional DecodeSuccessCallback successCallback,
|
||||
// optional DecodeErrorCallback errorCallback);
|
||||
Promise<AudioBuffer> decodeAudioData(ArrayBuffer audioData,
|
||||
optional DecodeSuccessCallback successCallback,
|
||||
optional DecodeErrorCallback errorCallback);
|
||||
AudioBufferSourceNode createBufferSource();
|
||||
// ConstantSourceNode createConstantSource();
|
||||
// ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue