Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback issue on Chrome, suspended audioContext #18

Open
ccdarabundit opened this issue Mar 2, 2023 · 0 comments
Open

Playback issue on Chrome, suspended audioContext #18

ccdarabundit opened this issue Mar 2, 2023 · 0 comments

Comments

@ccdarabundit
Copy link

Hello, and thank you for providing this project. I recently found a bug in Chrome during playback. The audioContext was suspended and not producing audio, this was my fix in beaqle.js in the AudioPool play function.

if (this.waContext.state == 'suspended') // Need to release audioContext
                    {this.waContext.resume();}
                audiotag.play()

I added a corresponding this.waContext.suspend() in the stop function, but unsure if that was necessary. These bug fixes may not be the ideal way of handling the issue. Maybe the solution is to update the AudioPool object to use the WebAudio API in all browsers as it is (now) more widely adopted?

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

No branches or pull requests

1 participant