bfirsh/dynamicaudio.js

New buffer is created on every write

bfirsh opened this issue · 0 comments

When using the Web Audio API, a new buffer is created on every write. This sucks, and means it's practically impossible to play sound than is longer than the length of the write.

Ideally, we should have a callback for filling the buffer, like the Web Audio API. As an interim solution, dynamicaudio.js should maintain its own buffer somehow.