StereoPannerNode DOM

This commit is contained in:
Maria Sable 2019-04-27 10:02:14 -04:00 committed by Manish Goregaokar
parent 549d320167
commit 58f027468c
12 changed files with 173 additions and 109 deletions

View file

@ -43,7 +43,7 @@ interface BaseAudioContext : EventTarget {
// sequence<double> feedback);
// WaveShaperNode createWaveShaper();
[Throws] PannerNode createPanner();
// StereoPannerNode createStereoPanner();
[Throws] StereoPannerNode createStereoPanner();
// ConvolverNode createConvolver();
[Throws] ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6);
[Throws] ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6);

View file

@ -0,0 +1,17 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/*
* The origin of this IDL file is
* https://webaudio.github.io/web-audio-api/#StereoPannerNode
*/
dictionary StereoPannerOptions: AudioNodeOptions {
float pan = 0;
};
[Exposed=Window,
Constructor (BaseAudioContext context, optional StereoPannerOptions options)]
interface StereoPannerNode : AudioScheduledSourceNode {
readonly attribute AudioParam pan;
};