Bug 984498: add new a parameter(audiochannel type) to AudioContext API. r=roc

This commit is contained in:
Star Cheng 2014-04-18 14:06:23 +08:00
parent d94f5de90e
commit f4c00e37fb

View File

@ -13,7 +13,8 @@
callback DecodeSuccessCallback = void (AudioBuffer decodedData);
callback DecodeErrorCallback = void ();
[Constructor]
[Constructor,
Constructor(AudioChannel audioChannelType)]
interface AudioContext : EventTarget {
readonly attribute AudioDestinationNode destination;
@ -28,7 +29,7 @@ interface AudioContext : EventTarget {
DecodeSuccessCallback successCallback,
optional DecodeErrorCallback errorCallback);
// AudioNode creation
// AudioNode creation
[NewObject]
AudioBufferSourceNode createBufferSource();