cables-gl / cables_docs

cables documentation docs.cables.gl
https://cables.gl/docs/docs
33 stars 14 forks source link

AudioBufferPlayer : end of loop #753

Open 60-hz opened 3 weeks ago

60-hz commented 3 weeks ago

Getting information when the end of loop is reached as output in AudioBufferPlayer would be helpful for synchronisation purpose.

steam0r commented 2 weeks ago

hey,

this does not seem to be possible with the webaudio api, see this discussion:

https://github.com/WebAudio/web-audio-api/issues/267

their argument is basically that global time might be used and that loopend will be delayed by slowing down playback and whatnot...it's really sad to see that it still is super-hard to even know where in a track i currently at in webaudio, but if they decide they do not want to know there is not much we can do, as the arguments are the same...we cannot really implement an internal/global timer as this would also have to listen to all events on playback (timeline, triggers, variables, ...)

if you find something/someone who does this, feel free to hint us in the right direction....sorry...