Announcement

Collapse
No announcement yet.

WAV Sound Stopped Playing After A Few Times

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • WAV Sound Stopped Playing After A Few Times

    Hi,

    I want to play a WAV sound when my bluetooth peripheral receives a message. I called the file_PlayWAV function to play a sound file. It worked well in a demo sketch whereby it only does one thing, playing the sound. When I wrote the same code on a sketch that includes other modules, it stopped playing after a few times.

    I'm using Arduino Mega 2560 and sk 32ptu.
    Code:
    void loop()
    {
      if(!Display.snd_Playing())
      {
        Serial.println(Display.file_PlayWAV("GreatJob.wav"));
      }
    }

  • #2
    What are you saying?

    After you power things up the sound only plays a few times?

    It doesn't play any sound anymore?

    It doesn't play a different sound file?
    Mark

    Comment


    • #3
      Hi Mark, as you can see in the code above, it starts playing the same sound file when it finished playing it and this goes on in a loop. After a few times, it stopped playing the sound anymore.

      Comment


      • #4
        Hi, can someone follow up on this?

        Comment


        • #5
          What baud rate are you using?
          Are you using SW or HW serial?
          Mark

          Comment

          Working...
          X