The documentation https://www.pjrc.com/teensy/gui/?info=AudioPlayQueue for play_qeue is not OK.
https://github.com/PaulStoffregen/Au..._queue.cpp#L31
It does not mention available(), and getBuffer() does not return null.
Then, a short example, probably pesudocode should be given:
I leave the pullrequest to others with better English skills.
https://github.com/PaulStoffregen/Au..._queue.cpp#L31
It does not mention available(), and getBuffer() does not return null.
Then, a short example, probably pesudocode should be given:
Code:
if (queue1.available()) {
audio_buffer = queue1.getBuffer();
..fill buffer here..
queue1.playBuffer();
...
}
I leave the pullrequest to others with better English skills.