Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [GDK] Simple MP3 Player

Author
Message
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 23rd Jul 2009 20:16
this is a small program less then 40 lines that is able to play a .mp3 or MIDI file.

In the code, our MP3 file is called "jungle.mp3", be sure to replace the filename within the quotes of "dbLoadMusic()" to play what ever song you want.

The control are:
Spacebar - Start song
Left Arrowkey - Pause song
Right Arrowkey - play song


Originally this thing was supposed to be driven just by the space bar, but im not the best C++ coder, so i need to work on that part, but i still keep the variable "iSP" just for identifying if the song is paused or not.

http://twewy-fan.com/ <-- The first ever fansite for "The World Ends With You"

Login to post a reply

Server time is: 2024-11-22 00:54:59
Your offset time is: 2024-11-22 00:54:59