Skip to content
Discussion options

You must be logged in to vote

Finally put 1000 mp3 files into the mp3 directory on the SD card and tried to reproduce.

uint16_t count = dfmp3.getTotalTrackCount(DfMp3_PlaySource_Sd);
  Serial.print("files ");
  Serial.println(count);

returned 1000 correctly.

OUT  7e ff 06 48 00 00 00 fe b3 ef
IN  7e ff 06 48 00 03 e8 fd c8 ef
files 1000

The notification handler like...

static void OnPlayFinished([[maybe_unused]] DfMp3& mp3, [[maybe_unused]] DfMp3_PlaySources source, uint16_t track)   {
    Serial.print("Play finished for #");
    Serial.println(track);  

    track = dfmp3.getCurrentTrack();
    Serial.print("Current Track #");
    Serial.println(track);  
}

also returned track numbers above 255 correctly, and the …

Replies: 23 comments 14 replies

Comment options

You must be logged in to vote
1 reply
@DavidAIsom
Comment options

Comment options

You must be logged in to vote
2 replies
@DavidAIsom
Comment options

@Makuna
Comment options

Comment options

You must be logged in to vote
1 reply
@Makuna
Comment options

Comment options

You must be logged in to vote
2 replies
@Makuna
Comment options

@DavidAIsom
Comment options

Comment options

You must be logged in to vote
1 reply
@Makuna
Comment options

Comment options

You must be logged in to vote
1 reply
@DavidAIsom
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DavidAIsom
Comment options

Answer selected by Makuna
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Makuna
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Makuna
Comment options

Comment options

You must be logged in to vote
1 reply
@DavidAIsom
Comment options

Comment options

You must be logged in to vote
1 reply
@Makuna
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Makuna
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #103 on February 06, 2023 15:45.