0

Music Maker: Pause? # files limit?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Music Maker: Pause? # files limit?

by dgeers on Thu Apr 29, 2021 4:21 pm

Dear folks,

Hi. I'm helping my student with their Music Maker shield project. I used one of these about five years ago, but want to verify a couple things I couldn't find in the tutorial.
1. Is one able to pause and resume playback of an audio file? (I assume no, but they would love to do this & so I'm asking just in case.)
2. Is there a limit to how many files the Music Maker can address? I know of other brands' shields that limit the user to 32 soundfiles. My guess is that whatever limit there is would be huge, but thought I'd ask. I think the student would need fewer than one hundred sound files.

Thanks much for any help & advice,

Doug

dgeers
 
Posts: 19
Joined: Mon Jan 24, 2011 5:22 pm

Re: Music Maker: Pause? # files limit?

by mikeysklar on Fri Apr 30, 2021 5:38 pm

Yes, you can pause and resume playback with the Music Maker. It is based on using the uart serial control and sending a 'p'.

Code: Select all | TOGGLE FULL SIZE
    // if we get an 'p' on the serial console, pause/unpause!
    if (c == 'p') {
      if (! musicPlayer.paused()) {
        Serial.println("Paused");
        musicPlayer.pausePlaying(true);
      } else {
        Serial.println("Resumed");
        musicPlayer.pausePlaying(false);
      }
    }
  }


No limited to the number of files, but you do have to adhere to the 8.3 naming convention.

mikeysklar
 
Posts: 4543
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.