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.

Newcomers DBPro Corner / Problem playing Audio CD

Author
Message
pilot
23
Years of Service
User Offline
Joined: 11th Jun 2003
Location:
Posted: 14th Jun 2003 18:16
I'm a DBPro beginner, and am experimenting with it. I wrote a simple CD player. It plays the first track, then stops. It SHOULD play the whole CD then stop.
I am testing Music Playing(n) to see when the track stops, but the variable, once set by "Play Music n" never changes states. Is this the wrong variable to test? I have the same problem if I try MIDI files instead.

Thanks in Advance, Jim
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 14th Jun 2003 22:07
Hi Jim,

I had a crack at your problem.

I managed to make a simple shell of a cd player using the arrowkeys.

up loads and plays
down stops and deletes
left and right change a track variable thats reused for the up and down keys

theres a small bug if u press the upkey twice but that should be able to be fixed with a if music playing command if /endif statement around the upkey commands that load and play the music.

yell out if i didnt comment enough.




pilot
23
Years of Service
User Offline
Joined: 11th Jun 2003
Location:
Posted: 21st Jun 2003 22:30
Thanks for the effort and the response, but your code doesn't address the problem. When the track is over, how do we make it advance to the next track automatically. DB doesn't seem to know when the music is over, so it goes silent and waits for a user action to play the next tune. This isn't just a CD audio issue. It won't detect the end of a MIDI file either to sequence to the next one. I assume .wav files are the same, but haven't tried them.

indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Jun 2003 22:33
send your information with the source problem to [email protected] if you think it is indeed a bug.

pilot
23
Years of Service
User Offline
Joined: 11th Jun 2003
Location:
Posted: 23rd Jun 2003 23:33
Thanks for the help. I sent Lee the info and code sample.

Regards, Jim

Login to post a reply

Server time is: 2026-07-06 03:58:26
Your offset time is: 2026-07-06 03:58:26