Page 1 of 3

GW-Player (or: Your Gamebuino as a music player!)

PostPosted: Mon Jan 12, 2015 5:58 am
by Muessigb
Hello, I made a music player program, that you can play audio with.
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

Re: Sound Player (Play wave files from SD)

PostPosted: Mon Jan 12, 2015 1:07 pm
by Skyrunner65
Hey look, competition.
Its okay, I'm not much of a fighter anyways.
But seriously, WAV files are more common than RAW files.
But right now, I'm stuck on ACTUALLY MAKING IT WORK.
It's a big task, I know.
I hope you go a lot farther. :lol:

Re: Sound Player (Play wave files from SD)

PostPosted: Mon Jan 12, 2015 4:20 pm
by Muessigb
Hey, I made a huge update.
Feel free to download it.

@Skyrunner64
I had a look on your project, I PM'ed you about it.

Re: GW-Player (or: Your Gamebuino as a music player!)

PostPosted: Mon Jan 12, 2015 5:32 pm
by rodot
Neat, sounds pretty good :)
Just a random suggestion : you may want to provide a demo MEDIA.WAV for lazy people to be able to test it straight away without having to encode a file ^^

Re: GW-Player (or: Your Gamebuino as a music player!)

PostPosted: Mon Jan 12, 2015 6:12 pm
by Jamish
rodot wrote:Neat, sounds pretty good :)
Just a random suggestion : you may want to provide a demo MEDIA.WAV for lazy people to be able to test it straight away without having to encode a file ^^


Just make sure it's not licensed content so rodot could distribute the example if you want :D

Re: GW-Player (or: Your Gamebuino as a music player!)

PostPosted: Mon Jan 12, 2015 7:13 pm
by Muessigb
OK, i found and included a sample. :)

Re: GW-Player (or: Your Gamebuino as a music player!)

PostPosted: Mon Jan 12, 2015 7:37 pm
by Muessigb
Hey, I will also make a frontent for a converter, so that you can conveniantly convert all your music to gwave (nice name heh :lol: ) audio by just dragging it in a window.

EDIT: Converter is made and ready for download

Re: GW-Player (or: Your Gamebuino as a music player!)

PostPosted: Tue Jan 13, 2015 3:24 pm
by Skyrunner65
Well, since we are more or less merging, I guess I'll need your Github Username. (if you want to get to my repository [probably not, No additions have really been made other than incorporating the Gamebuino Library])\

Mine is Skyrunner65, btw.
Can we rename this by chance?
Everything else basically incorporates "Buino", so why not us?
This is probably my love for my old project, but what about "Buino Player" ?
If not, that's okay.

Re: GW-Player (or: Your Gamebuino as a music player!)

PostPosted: Tue Jan 13, 2015 7:47 pm
by Muessigb
Hey, I'm Muessigb on github.
No problems with that name at all.
What about PlayBuino? Just asking.

Re: GW-Player (or: Your Gamebuino as a music player!)

PostPosted: Wed Jan 14, 2015 2:38 am
by Skyrunner65
Sounds a bit better.
You can now access my "BuinoPlayer" repository.
Also, when I tried to use the menu, it froze.
Any luck on your part?
(your Github is quite interesting :) )

EDIT: Gave the repo a README.MD.
Let's support multiple file formats, starting with RAW (That's where it started, right?)