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 Discussion / CD player ! ? !

Author
Message
BB9 Brad
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location:
Posted: 7th Oct 2003 00:37
Hi i have made most of my cd player but at the end of a track it wont start playing the next track (song) how can i make it start to play the next song after the last song has ended ? ?

DB RULES!
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 7th Oct 2003 01:36
Why not use a timer and have it run the length of the song, when it reaches a certain number, play the next song You could store the timer lengths in an array.

RPGamer

Current Project: Eternal Destiny
We need a texture artist!
If your interested email me - [email protected]
BB9 Brad
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location:
Posted: 7th Oct 2003 01:49
I was hoping there would be an easier way because i want it so i can put in any cd so it doesnt have to no the time of each track but thanks for the help i might try it if the exact way i want doesnt come up

DB RULES!
BB9 Brad
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location:
Posted: 7th Oct 2003 01:55
o Wait! is there a way to make db find out the length of the tracks?

ive had an idea!

DB RULES!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th Oct 2003 03:03
Check if MUSIC PLAYING(). If not, delete track , load next track and play again.

I used this technique with wavs, and you never heard the gap, it was instantaneous. It will be slightly different with CD tracks, but my point is that this should be a very efficient way of doing it.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php

Login to post a reply

Server time is: 2025-05-20 17:17:31
Your offset time is: 2025-05-20 17:17:31