Skip to content

Conversation

@fergalhanley
Copy link

No description provided.

if (!playing)
return audioCurrentTime
else
return audioCurrentTime + (rightNow() - audioStartTime) / 1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess buffer source time is better be based on audioContext.currentTime than "browser time"

@dy
Copy link
Contributor

dy commented Jun 21, 2016

@mattdesl what stops you from merging this PR? currentTime is a handy property.

@mattdesl
Copy link
Contributor

I'll have to test this a bit, last I looked it wasn't this simple when you consider play/pause/etc and all the variables, but maybe it will just work. 😄 Thanks for the PR!

@andreyrd andreyrd mentioned this pull request Apr 13, 2020
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants