mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement DOM APIs for ChannelSplitterNode
This commit is contained in:
parent
4ac5b8a3ae
commit
ff0cf9e93a
16 changed files with 186 additions and 133 deletions
|
@ -57,5 +57,6 @@ interface AudioNode : EventTarget {
|
|||
attribute unsigned long channelCount;
|
||||
[SetterThrows]
|
||||
attribute ChannelCountMode channelCountMode;
|
||||
[SetterThrows]
|
||||
attribute ChannelInterpretation channelInterpretation;
|
||||
};
|
||||
|
|
|
@ -45,7 +45,7 @@ interface BaseAudioContext : EventTarget {
|
|||
[Throws] PannerNode createPanner();
|
||||
// StereoPannerNode createStereoPanner();
|
||||
// ConvolverNode createConvolver();
|
||||
// ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6);
|
||||
[Throws] ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6);
|
||||
[Throws] ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6);
|
||||
// DynamicsCompressorNode createDynamicsCompressor();
|
||||
[Throws] OscillatorNode createOscillator();
|
||||
|
|
16
components/script/dom/webidls/ChannelSplitterNode.webidl
Normal file
16
components/script/dom/webidls/ChannelSplitterNode.webidl
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* 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/#channelsplitternode
|
||||
*/
|
||||
|
||||
dictionary ChannelSplitterOptions : AudioNodeOptions {
|
||||
unsigned long numberOfOutputs = 6;
|
||||
};
|
||||
|
||||
[Exposed=Window,
|
||||
Constructor (BaseAudioContext context, optional ChannelSplitterOptions options)]
|
||||
interface ChannelSplitterNode : AudioNode {
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue