Skip to content

getFolderTrackCount(index) prints file count of 1st folder regardless of index #142

Closed Answered by boerge1
thre3eye asked this question in Q&A
Discussion options

You must be logged in to vote

This is a known bug of the GD3200B chip. getFolderTrackCount() ignores the parameter folder and gives the track count of the folder last played from (on start is uses the first folder in the root directory).

We use the following workaround:

#ifdef DFMiniMp3_T_CHIP_GD3200B
    uint8_t volume = mp3.getVolume();
    mp3.setVolume(0);
    delay(100);
    mp3.playFolderTrack(folder, 1);
    delay(500);
#endif
    trackCount = mp3.getFolderTrackCount(folder);
#ifdef DFMiniMp3_T_CHIP_GD3200B
    mp3.setVolume(volume);
#endif

Replies: 6 comments 1 reply

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
Answer selected by thre3eye
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #141 on October 09, 2023 22:23.