AudioPlaySdWav delay

Status
Not open for further replies.

sjtrny

Member
Hi all,

Suppose I want to simultaneously play 4 WAV files.

When using AudioPlaySdWav::play is it necessary to add a delay between each call? Or can I call play and then delay?

For example would loop be ok? (I don't currently have hardware to test with)

Code:
void loop() {

   /////////////
   // Code here to check if buttons are pressed
   /////////////

  if (button1_pressed) {
    playSdWav1.play("SDTEST1.WAV");
  }
  if (button2_pressed) {
    playSdWav2.play("SDTEST2.WAV");
  }
  if (button2_pressed) {
    playSdWav3.play("SDTEST3.WAV");
  }
  if (button2_pressed) {
    playSdWav4.play("SDTEST4.WAV");
  }

  delay(5)

}
 
Status
Not open for further replies.
Back
Top