call decodeAudioBuffer on ogg buffers more then 40 times quickly will always fail
Categories
(Core :: Audio/Video, defect)
Tracking
()
People
(Reporter: alynx.zhou, Unassigned)
Details
Steps to reproduce:
I am creating a piano app on https://piano.alynx.one/, it fetches a JSON file, and get 49 base64 encoded ogg audio for different piano keys. Then I decode base64, and use AudioContext.decodeAudioBuffer() in a loop to decode those ogg buffer into audio buffer.
Actual results:
I always get DOMException: The buffer passed to decodeAudioData contains invalid content which cannot be decoded successfully. for the last 9 buffers. If I sort the buffer in another sequence, still the last 9 buffers failed, but different buffers.
Expected results:
All ogg buffers are decoded into audio buffers without error. I tested Firefox on Linux and Chrome on Android, they all work.
| Reporter | ||
Comment 1•3 years ago
|
||
Oh, this only happens on Firefox Android (Fenix).
Further steps I did and results:
- Use more than one
AudioContexts, I even create differentAudioContextto different buffer, the error still exists. - When the first
Promise.all()finised, run another loop to re-decode the failed buffers, no error: https://github.com/AlynxZhou/azpiano/commit/8026fdd8fba46dcdfd6d38b81e3166aac165bc70. So I think this only happens when you quickly calldecodeAudioBuffer()many times.
Comment 2•3 years ago
|
||
The severity field is not set for this bug.
:jonalmeida, could you have a look please?
For more information, please visit BugBot documentation.
Updated•3 years ago
|
Comment 4•3 years ago
|
||
The severity field is not set for this bug.
:jimm, could you have a look please?
For more information, please visit BugBot documentation.
Updated•3 years ago
|
Updated•2 years ago
|
Description
•