X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fmodules%2Fwebaudio%2FAudioContext.idl;h=f5a932a181c4c5046f33f2dda38d69bf7db4089b;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=52da1a57277e01cbbe751264a17cab4800aaeddf;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/modules/webaudio/AudioContext.idl b/src/third_party/WebKit/Source/modules/webaudio/AudioContext.idl index 52da1a5..f5a932a 100644 --- a/src/third_party/WebKit/Source/modules/webaudio/AudioContext.idl +++ b/src/third_party/WebKit/Source/modules/webaudio/AudioContext.idl @@ -24,19 +24,20 @@ */ [ + WillBeGarbageCollected, ActiveDOMObject, Conditional=WEB_AUDIO, Constructor, - Constructor(unsigned long numberOfChannels, unsigned long numberOfFrames, float sampleRate), ConstructorCallWith=Document, NoInterfaceObject, RaisesException=Constructor, ] interface AudioContext : EventTarget { + // All rendered audio ultimately connects to destination, which represents the audio hardware. readonly attribute AudioDestinationNode destination; // All scheduled times are relative to this time in seconds. - readonly attribute float currentTime; + readonly attribute double currentTime; // All AudioNodes in the context run at this sample-rate (sample-frames per second). readonly attribute float sampleRate; @@ -44,11 +45,7 @@ // All panning is relative to this listener. readonly attribute AudioListener listener; - // Number of AudioBufferSourceNodes that are currently playing. - readonly attribute unsigned long activeSourceCount; - [RaisesException] AudioBuffer createBuffer(unsigned long numberOfChannels, unsigned long numberOfFrames, float sampleRate); - [RaisesException] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixToMono); // Asynchronous audio file data decoding. [RaisesException] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallback, optional AudioBufferCallback errorCallback); @@ -82,10 +79,4 @@ // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsigned long numberOfFrames, float sampleRate); attribute EventHandler oncomplete; void startRendering(); - - [MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode(); - [MeasureAs=LegacyWebAudio, ImplementedAs=createDelay, RaisesException] DelayNode createDelayNode(optional double maxDelayTime); - - [MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor, RaisesException] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChannels); - };