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

[BUG/HTML5] Audio needs to be played first before making a waveform #8

Open
ACrazyTown opened this issue Nov 17, 2024 · 1 comment
Open
Labels
blocked not possible to accomplish due to external factors bug Something isn't working help wanted Extra attention is needed Target: HTML5 issues that appear only on the HTML5 target

Comments

@ACrazyTown
Copy link
Owner

This is a limitation of the method I use for waveforms on HTML5. As far as I know, howler.js (audio backend lime uses on HTML5) only exposes the audio buffer when the sound is playing. Trying to make a waveform while the sound isn't playing will result in nothing because the waveform can't get the audio buffer.

@ACrazyTown ACrazyTown added bug Something isn't working help wanted Extra attention is needed blocked not possible to accomplish due to external factors Target: HTML5 issues that appear only on the HTML5 target labels Nov 17, 2024
@ACrazyTown
Copy link
Owner Author

Also, trying to create a waveform instantly (even if there's a safeguard waiting for an user interaction) will likely cause a crash. I assume it's because the audio context doesn't get created fast enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked not possible to accomplish due to external factors bug Something isn't working help wanted Extra attention is needed Target: HTML5 issues that appear only on the HTML5 target
Projects
None yet
Development

No branches or pull requests

1 participant