Interrupting Playcomlpete (Wave Shield)

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
xl97
 
Posts: 201
Joined: Mon Jul 27, 2009 12:51 pm

Re: Interrupting Playcomlpete (Wave Shield)

Post by xl97 »

or still use your playComplete() function... like so:


Code: Select all

// Plays a full file from beginning to end with no pause.
void playcomplete(char *name) {
  // call our helper to find and play this name
  playfile(name);
  while (wave.isplaying) {
    // audio clip is playing..careful when putting code in here to execute
    // if the audio stops first..youre stick in 'here' until your actions are done
    // if actions here end first..might not mesh-up with the audio ending
  }
  // audio is done playing.. trigger/do whatever now
}

I believe same results... :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”