Go Down

Topic: Arduino DUE Audio player stuttering problems (Read 107 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy