Skip to content

Of the correct usage of player.setPath ([W] AudioPlayer.h : 144 - -> begin: no data found) #580

Closed
@0x0fe

Description

@0x0fe

So, i may have a wrong usage of player.setPath, or there is a bug. I am reading mp3 from SD card via AudioSourceSDMMC, when i play files inside directories at the root of the SD it works fine, i set the parth with
player.setPath("/K0012");
And it will automatically find the files in this directory and play them one after the other.
However, when i move all the directories inside a subdirectory MKI01, then i got no data found error

player.setPath("/MKI01/K0012"); 
player.begin();

[W] AudioPlayer.h : 144 - -> begin: no data found
I dont understand what the cause can be, here is a picture of the SD structure:
image

That is how i setup the player:

player.setVolume(0.9); 
player.setMetadataCallback(printMetaData);
player.setAutoNext(true);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions