PaulStoffregen / Audio

Teensy Audio Library
http://www.pjrc.com/teensy/td_libs_Audio.html
1.1k stars 408 forks source link

Fix PlayQueueDemo.ino to behave correctly if testMode == 1 #459

Open h4yn0nnym0u5e opened 1 year ago

h4yn0nnym0u5e commented 1 year ago

It is documented that if AudioPlayQueue::playBuffer() returns a non-zero value (fails), the call must be re-tried until the return value is zero (success). The demo did not do this, with the result that no sound was heard with testMode == 1

Issue was noted by Bob Larkin, who’s pulled the equivalent change into the AudioF32 library.