Use new params impl (#4)

* AudioNodeType -> AudioNodeInit

* Use new param type system, clean up
This commit is contained in:
Manish Goregaokar 2018-07-09 23:10:20 -07:00 committed by Fernando Jiménez Moreno
parent 8f9a081ff0
commit f0d04249f9
9 changed files with 113 additions and 146 deletions

View file

@ -11,7 +11,7 @@ use dom::audioparam::AudioParam;
use dom::eventtarget::EventTarget;
use dom_struct::dom_struct;
use servo_media::audio::graph::NodeId;
use servo_media::audio::node::{AudioNodeMessage, AudioNodeType};
use servo_media::audio::node::{AudioNodeMessage, AudioNodeInit};
use std::cell::Cell;
// 32 is the minimum required by the spec for createBuffer() and the deprecated
@ -33,7 +33,7 @@ pub struct AudioNode {
}
impl AudioNode {
pub fn new_inherited(node_type: AudioNodeType,
pub fn new_inherited(node_type: AudioNodeInit,
node_id: Option<NodeId>,
context: &BaseAudioContext,
options: &AudioNodeOptions,