Skip to content

Commit

Permalink
AudioBufferSourceNode: Support start parameters (offset, duration)
Browse files Browse the repository at this point in the history
  • Loading branch information
collares committed Aug 19, 2019
1 parent 992e7ba commit e8d3b97
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/script/dom/audiobuffersourcenode.rs
Expand Up @@ -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)
Expand Down

0 comments on commit e8d3b97

Please sign in to comment.