Audio output after I prepended baseDir to audioFile variable. Yay. The sample now plays and the slept variable increments as expected, but after counting up to playbackDuration, and flushing the buffer, it hangs at the while readSensor loop at the bottom of the while get_busy() loop, never reporting any more input. Added some debugging output to that bottom while.