I recently got a mp3 player shield, it has the vs1053 codec, similar to sparkfun's & adafruits.
I can play mp3's from an sd card, at first I put a file on the sd as per the tutorial called track001.mp3, that worked, then I put a sd card in with a load of music on and changed the track001 to wave/800hz and it worked, the mp3 file was in a folder on the sd called wave, and within the folder the track is called 800hz.
This is the library function to play a track copied from the .h file:
boolean startPlayingFile(const char *trackname);
So I tried this in my code
musicPlayer.startPlayingFile(inData)
Indata is a character string read in from serial, I presume this doesnt work as the original function has const char defined.
Sparkfun also does a library for this chip, but its really complex.
I can play mp3's from an sd card, at first I put a file on the sd as per the tutorial called track001.mp3, that worked, then I put a sd card in with a load of music on and changed the track001 to wave/800hz and it worked, the mp3 file was in a folder on the sd called wave, and within the folder the track is called 800hz.
This is the library function to play a track copied from the .h file:
boolean startPlayingFile(const char *trackname);
So I tried this in my code
musicPlayer.startPlayingFile(inData)
Indata is a character string read in from serial, I presume this doesnt work as the original function has const char defined.
Sparkfun also does a library for this chip, but its really complex.