AudioContext.suspend() implementation

This commit is contained in:
Fernando Jiménez Moreno 2018-06-25 13:00:11 +02:00
parent 01f3951c66
commit 9f15bdd6cc
2 changed files with 46 additions and 8 deletions

View file

@ -79,6 +79,10 @@ impl BaseAudioContext {
context
}
pub fn audio_graph(&self) -> &AudioGraph {
&self.audio_graph
}
pub fn create_node_engine(&self, node_type: AudioNodeType) -> NodeId {
self.audio_graph.create_node(node_type)
}
@ -103,7 +107,7 @@ impl BaseAudioContext {
task_source.queue_simple_event(
self.upcast(),
atom!("statechange"),
&window,
&window
);
}
}