// 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}