diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2018-09-11 17:07:10 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-09-11 19:24:01 +0530 |
commit | 9254606b014cdfed6f4a1eaf6eb8e656e1c2422b (patch) | |
tree | 0e6daa55ba816cea03814ca7892fc278f789d17d /components/script/dom/audioscheduledsourcenode.rs | |
parent | 9779ce3b88f9c1e15e0ab785740e6a630ba5cbb1 (diff) | |
download | servo-9254606b014cdfed6f4a1eaf6eb8e656e1c2422b.tar.gz servo-9254606b014cdfed6f4a1eaf6eb8e656e1c2422b.zip |
Pass down ChannelInfo to create_node
Diffstat (limited to 'components/script/dom/audioscheduledsourcenode.rs')
-rw-r--r-- | components/script/dom/audioscheduledsourcenode.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/audioscheduledsourcenode.rs b/components/script/dom/audioscheduledsourcenode.rs index 871a793f6ec..972d709ba69 100644 --- a/components/script/dom/audioscheduledsourcenode.rs +++ b/components/script/dom/audioscheduledsourcenode.rs @@ -1,9 +1,8 @@ /* 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 http://mozilla.org/MPL/2.0/. */ -use dom::audionode::AudioNode; +use dom::audionode::{AudioNode, UnwrappedAudioNodeOptions}; use dom::baseaudiocontext::BaseAudioContext; -use dom::bindings::codegen::Bindings::AudioNodeBinding::AudioNodeOptions; use dom::bindings::codegen::Bindings::AudioScheduledSourceNodeBinding::AudioScheduledSourceNodeMethods; use dom::bindings::error::{Error, Fallible}; use dom::bindings::inheritance::Castable; @@ -28,7 +27,7 @@ impl AudioScheduledSourceNode { pub fn new_inherited( node_type: AudioNodeInit, context: &BaseAudioContext, - options: &AudioNodeOptions, + options: UnwrappedAudioNodeOptions, number_of_inputs: u32, number_of_outputs: u32, ) -> Fallible<AudioScheduledSourceNode> { |