mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Handle channel count constraints in panner constructor
This commit is contained in:
parent
58176c4148
commit
5dd830344b
3 changed files with 19 additions and 11 deletions
|
@ -331,7 +331,7 @@ impl BaseAudioContextMethods for BaseAudioContext {
|
|||
}
|
||||
|
||||
/// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createpanner
|
||||
fn CreatePanner(&self) -> DomRoot<PannerNode> {
|
||||
fn CreatePanner(&self) -> Fallible<DomRoot<PannerNode>> {
|
||||
PannerNode::new(&self.global().as_window(), &self, &PannerOptions::empty())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue