mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Get destination node engine from context
This commit is contained in:
parent
1c2d872e33
commit
07c0450e29
4 changed files with 15 additions and 3 deletions
|
@ -21,7 +21,9 @@ impl AudioDestinationNode {
|
|||
fn new_inherited(context: &BaseAudioContext,
|
||||
options: &AudioNodeOptions) -> AudioDestinationNode {
|
||||
AudioDestinationNode {
|
||||
node: AudioNode::new_inherited(AudioNodeType::DestinationNode, context, options, 1, 1),
|
||||
node: AudioNode::new_inherited(AudioNodeType::DestinationNode,
|
||||
Some(context.destination_node()),
|
||||
context, options, 1, 1),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue