mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
AudioBufferSourceNode: Support start parameters (offset, duration)
This commit is contained in:
parent
992e7ba630
commit
e8d3b9753f
1 changed files with 10 additions and 0 deletions
|
@ -225,6 +225,16 @@ impl AudioBufferSourceNodeMethods for AudioBufferSourceNode {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.source_node
|
||||||
|
.node()
|
||||||
|
.message(AudioNodeMessage::AudioBufferSourceNode(
|
||||||
|
AudioBufferSourceNodeMessage::Start(
|
||||||
|
*when,
|
||||||
|
offset.map(|f| *f),
|
||||||
|
duration.map(|f| *f),
|
||||||
|
),
|
||||||
|
));
|
||||||
|
|
||||||
self.source_node
|
self.source_node
|
||||||
.upcast::<AudioScheduledSourceNode>()
|
.upcast::<AudioScheduledSourceNode>()
|
||||||
.Start(when)
|
.Start(when)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue