mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
AudioContext.suspend() implementation
This commit is contained in:
parent
01f3951c66
commit
9f15bdd6cc
2 changed files with 46 additions and 8 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue