Skip to content

Support playbackRate for WebAudio audio sources #713

@markwitt1

Description

@markwitt1

The player exposes a playback-rate attribute and a speed-selector in the controls, and at non-1× the transport clock, GSAP timeline, and native <video> elements all advance at the new rate. But <audio> clips routed through WebAudioTransport keep playing at 1× because AudioBufferSourceNode.playbackRate is never set.

Result: visuals run at 2×, audio plays at 1×, hard desync within seconds.

Fix sketch: thread the transport rate into schedulePlayback, set sourceNode.playbackRate.value, and add a setRate() that updates active sources in place on set-playback-rate.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions