Skip to content

Add playback position to AudioBufferPlayer #192

Discussion options

You must be logged in to vote

i tried something similar once and for some reason it's not really that easy. i also don't think its a good idea to add another trigger for this. when i did this i tried to bind it to some events in the audiocontext itself but then ran into these kind of problems:

https://stackoverflow.com/questions/31644060/how-can-i-get-an-audiobuffersourcenodes-current-time

where people basically write their own timer and "progress counter". i solved this by patching back then. you should have all the information you need on the outside already (as your calculations show) and then synchronizing the "start / stop" input with a

https://cables.gl/op/Ops.Time.TimeSinceTrigger

was the way to go for me back …

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@b2renger
Comment options

@steam0r
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@b2renger
Comment options

@steam0r
Comment options

Answer selected by steam0r
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants