It plays unsigned 8-bit mono wave files that run at 20khz, encoded in raw.
Feel free to download it from the Games section.
You can convert files with that command:
- Code: Select all
ffmpeg -i your_sound_file.mp3 -f s8 -acodec pcm_s8 -ar 20000 -ac 1 -af "volume=5dB" NAME.WAV
Now you can name the file however you want, as long as the name follows the 8.3 standard.
Then just drop the file onto your FAT-formatted SD and start the player.
But if you're lazy you can just use my converter application. Just drop your music files in the window, select your Gamebuino SD and the files are automatically named and converted!
Select Load Music from the menu and enjoy listening.
A is play/pause, B is stop, C is menu and the right and left arrow keys are for seeking. You can seek by fast tapping the arrow keys; each faster each further you will seek. To load another song just press stop and select Load Music again. If you press C, while listening to music, you can access a context menu, which is not quite complete yet, but allready allows you to restart the song from the beginning.
Special thanks to Myndale, who passively helped me with his example to understand how you can play WAVE files.
Here is a encoded public domain music sample, so that you can test it straightaway.
Planned features are:
- Tags
This could be archieved as I'm using a proprietary file format and so you have to convert your files anyways.
Benedikt Müssig aka Muessigb