Home Forums Sparkfun MP3 Shield Library Support Forum Playing other files (aac,wma,ogg) than mp3 Reply To: Playing other files (aac,wma,ogg) than mp3

#3571

I just  tried out http://techslides.com/demos/samples/sample.aac with the current version FilePlayer.ino and it worked fine.

Looking at your images, i see that it looks like you are using an older version. specifically in the dump of your help I see

” [###] Enter index of file to play, zero pad! e.g. 01-65534″

the current version prints the following:

” [0####] Enter index of file to play, zero pad! e.g. 01-65534″

This is important as I suspect that the problem is that you are not preceding the file index with a ZERO. if the initial digit is 0 then it will used the index location of the directory. example “05” will play “test.aac”, where “5” will play “TRACK005.wma”. This allows the sketch to be backwards compatible. Leading with a non-zero is the original demo.

Note that the VS1053 chip does not even see the file name, rather it auto detects the file format. The file extension is simply used to filter out none audio files from the List command. Where the Play command uses the same filter to find the files.