audiocogs / aurora.js

JavaScript audio decoding framework
http://audiocogs.org/codecs
1.26k stars 185 forks source link

Audio is choppy on Android chrome #173

Open IrosTheBeggar opened 8 years ago

IrosTheBeggar commented 8 years ago

I'm testing out aurura for flac playback and it's working just fine on desktop. However in my mobile browser the audio is very choppy. There's a short pause every second or two.

I'm wondering if anyone else has run into this problem and if there's any way around it.

For the backend, I'm using Node + Express to serve the flac files

nickcarterney commented 8 years ago

=)) I got the same issue :D they told me that is not aurora's issue . Maybe it's caused by android OS or Google Chrome

Kukunin commented 5 years ago

This might be related: https://bugs.chromium.org/p/chromium/issues/detail?id=650425. Aurora uses createScriptProcessor which has problems with bufferSize < 4096 (or even 8192). It reproduces on S8/S9: http://jsfiddle.net/78yKV/25. There is no workaround other than implementing a new audio device using AudioWorklets introduced in Chrome 66+ https://developers.google.com/web/updates/2017/12/audio-worklet