Handle channel count constraints in panner constructor

This commit is contained in:
Manish Goregaokar 2018-08-24 12:42:50 -07:00
parent 58176c4148
commit 5dd830344b
3 changed files with 19 additions and 11 deletions

View file

@ -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())
}