Go Down

Topic: Arduino DUE Audio player stuttering problems (Read 49 times) previous topic - next topic

Loading the basic SimpleAudioPlayer example will play the first audio file fine, but if instead of going to an infinite loop at the end we let the loop function rollover after a delay, the following audio is all stuttering.
I narrowed the problem down to two lines; I added the following function to the audio library:

Code: [Select]
void AudioClass::rst(void){
// Buffering starts from the beginning
running = buffer;
next = buffer;
}


I just have to call this function after the file ends, and the next file I open will play correctly.
Hope this helps someone.

Go Up