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.

DarkBASIC Professional Discussion / MP3 Player working Code with Looping

Author
Message
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 2nd Jul 2013 20:59 Edited at: 2nd Jul 2013 21:09


I re-edited this code to work better. I even added a loop option. Just hit the L key.

It is quirky when you hit keys because of the fact that there is no timer built in to stop a key from being pressed more then once in a specified amount of time.

But all in all this looks for a music folder. If it does not find one it creates it for you. You then put your MP3 music in there. I limited this to songLimit = 50. You can change that obviously.

Theoretically, it should loop forever with the listed music you have in the music folder when it first starts up.



The original coder and thread is here :
http://forum.thegamecreators.com/?m=forum_view&t=194806&b=1

This was compiled and tested to work with the U77 DarkBasic Pro compiler on Windows 7 x64 Bit computer.

matrix1 DLL plugins MIGHT be needed. I am not sure. But if they are needed, look here :
http://forum.thegamecreators.com/?m=forum_view&t=85209&b=18

Login to post a reply

Server time is: 2026-07-06 18:36:30
Your offset time is: 2026-07-06 18:36:30