mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
||||
.upcast::<AudioScheduledSourceNode>()
|
||||
.Start(when)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue