mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Add BaseAudioContext.createPanner()
This commit is contained in:
parent
43ea9e0e4a
commit
062c1d6071
2 changed files with 9 additions and 1 deletions
|
@ -18,6 +18,7 @@ use dom::bindings::codegen::Bindings::BaseAudioContextBinding::DecodeErrorCallba
|
||||||
use dom::bindings::codegen::Bindings::BaseAudioContextBinding::DecodeSuccessCallback;
|
use dom::bindings::codegen::Bindings::BaseAudioContextBinding::DecodeSuccessCallback;
|
||||||
use dom::bindings::codegen::Bindings::GainNodeBinding::GainOptions;
|
use dom::bindings::codegen::Bindings::GainNodeBinding::GainOptions;
|
||||||
use dom::bindings::codegen::Bindings::OscillatorNodeBinding::OscillatorOptions;
|
use dom::bindings::codegen::Bindings::OscillatorNodeBinding::OscillatorOptions;
|
||||||
|
use dom::bindings::codegen::Bindings::PannerNodeBinding::PannerOptions;
|
||||||
use dom::bindings::error::{Error, ErrorResult, Fallible};
|
use dom::bindings::error::{Error, ErrorResult, Fallible};
|
||||||
use dom::bindings::inheritance::Castable;
|
use dom::bindings::inheritance::Castable;
|
||||||
use dom::bindings::num::Finite;
|
use dom::bindings::num::Finite;
|
||||||
|
@ -28,6 +29,7 @@ use dom::domexception::{DOMErrorName, DOMException};
|
||||||
use dom::eventtarget::EventTarget;
|
use dom::eventtarget::EventTarget;
|
||||||
use dom::gainnode::GainNode;
|
use dom::gainnode::GainNode;
|
||||||
use dom::oscillatornode::OscillatorNode;
|
use dom::oscillatornode::OscillatorNode;
|
||||||
|
use dom::pannernode::PannerNode;
|
||||||
use dom::promise::Promise;
|
use dom::promise::Promise;
|
||||||
use dom::window::Window;
|
use dom::window::Window;
|
||||||
use dom_struct::dom_struct;
|
use dom_struct::dom_struct;
|
||||||
|
@ -328,6 +330,12 @@ impl BaseAudioContextMethods for BaseAudioContext {
|
||||||
GainNode::new(&self.global().as_window(), &self, &GainOptions::empty())
|
GainNode::new(&self.global().as_window(), &self, &GainOptions::empty())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createpanner
|
||||||
|
fn CreatePanner(&self) -> DomRoot<PannerNode> {
|
||||||
|
PannerNode::new(&self.global().as_window(), &self, &PannerOptions::empty())
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createbuffer
|
/// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createbuffer
|
||||||
fn CreateBuffer(
|
fn CreateBuffer(
|
||||||
&self,
|
&self,
|
||||||
|
|
|
@ -42,7 +42,7 @@ interface BaseAudioContext : EventTarget {
|
||||||
// IIRFilterNode createIIRFilter(sequence<double> feedforward,
|
// IIRFilterNode createIIRFilter(sequence<double> feedforward,
|
||||||
// sequence<double> feedback);
|
// sequence<double> feedback);
|
||||||
// WaveShaperNode createWaveShaper();
|
// WaveShaperNode createWaveShaper();
|
||||||
// PannerNode createPanner();
|
PannerNode createPanner();
|
||||||
// StereoPannerNode createStereoPanner();
|
// StereoPannerNode createStereoPanner();
|
||||||
// ConvolverNode createConvolver();
|
// ConvolverNode createConvolver();
|
||||||
// ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6);
|
// ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue