diff --git a/webaudioapi/waa-tests.ts b/webaudioapi/waa-tests.ts index da19577f0..20e49f8ea 100644 --- a/webaudioapi/waa-tests.ts +++ b/webaudioapi/waa-tests.ts @@ -306,3 +306,9 @@ declare var footstepsBuffer: any; } }; +()=>{ + var context = new webkitOfflineAudioContext(1, 2, 44100.5); + context.startRendering(); + context.oncomplete(context.createBufferSource().buffer); +} + diff --git a/webaudioapi/waa-tests.ts.tscparams b/webaudioapi/waa-tests.ts.tscparams deleted file mode 100644 index e16c76dff..000000000 --- a/webaudioapi/waa-tests.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -"" diff --git a/webaudioapi/waa.d.ts b/webaudioapi/waa.d.ts index b18f2db59..43aa8c4ea 100644 --- a/webaudioapi/waa.d.ts +++ b/webaudioapi/waa.d.ts @@ -180,11 +180,14 @@ interface OfflineRenderSuccessCallback{ * var offlineContext = new OfflineAudioContext(unsigned long numberOfChannels, unsigned long length, float sampleRate); */ interface OfflineAudioContext extends AudioContext{ - constructor(); startRendering(): void; oncomplete: OfflineRenderSuccessCallback; } +declare var webkitOfflineAudioContext: { + new (numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext; +} + /** * AudioNodes are the building blocks of an AudioContext. This interface represents audio sources, the audio destination, and intermediate processing modules. These modules can be connected together to form processing graphs for rendering audio to the audio hardware. Each node can have inputs and/or outputs. An AudioSourceNode has no inputs and a single output. An AudioDestinationNode has one input and no outputs and represents the final destination to the audio hardware. Most processing nodes such as filters will have one input and one output. Each type of AudioNode differs in the details of how it processes or synthesizes audio. But, in general, AudioNodes will process its inputs (if it has any), and generate audio for its outputs (if it has any). * diff --git a/webaudioapi/waa.d.ts.tscparams b/webaudioapi/waa.d.ts.tscparams deleted file mode 100644 index e16c76dff..000000000 --- a/webaudioapi/waa.d.ts.tscparams +++ /dev/null @@ -1 +0,0 @@ -""