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 / Playing mp3's in program

Author
Message
Unseen Ghost
23
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Ohio
Posted: 26th Jul 2003 01:48
Hi,

I have been trying to get 3 mp3 files to play. I got one mp3 to play and stop when it is suppose to.

There is 6 buttons going down the right side of the screen in the program. There is a start and stop button for all 3 songs. When I click on the 3rd song button to start it (5th button down from top) the 2nd song also starts, so I have to click on the 2nd songs stop button to stop it. By the way I load all 3 songs at the beginning of the program. I don't see any thing wrong with the code I have. Can anyone help ? Here is the code that I thought I would have to show you.

UnseenGhost
HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 26th Jul 2003 01:58
Hm. Maybe what you should do is have a bit of a delay? I think what is happening is that your clicking so fast it just moves right on to the next song...try this:



If that doesn't work, try increasing the delay. And if that doesn't work then I guess I'm wrong, lol.

SW Games - www.freewebs.com/swgames

Yeah, I know, I only have one game. Yeah, I know it sucks. But I made it! Me!
Unseen Ghost
23
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Ohio
Posted: 26th Jul 2003 02:09
Ok I will give it a try. If it doesn't work I will be back to update.

UnseenGhost

HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 26th Jul 2003 03:09
And if it does work you won't be back? ...hmm...

SW Games - www.freewebs.com/swgames

Yeah, I know, I only have one game. Yeah, I know it sucks. But I made it! Me!
Unseen Ghost
23
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Ohio
Posted: 26th Jul 2003 18:23
by the way I'm back.(LOL) guess what ? It didn't work(LOL)
Could it be a bug in DBP ?

spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 26th Jul 2003 20:31 Edited at: 26th Jul 2003 20:34
Not a bug,

you have used =< instead of <= and => instead of >=

they are 'spelt' as pronounced:

"less than or equals" : <=
"more than or equals" : >=

See ya!

The programmer formerly known as sonic
HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 27th Jul 2003 00:16
That's kind of ironic, a ghost's question answered by spooky...

SW Games - www.freewebs.com/swgames

Yeah, I know, I only have one game. Yeah, I know it sucks. But I made it! Me!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 27th Jul 2003 00:29


The programmer formerly known as sonic
Unseen Ghost
23
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Ohio
Posted: 27th Jul 2003 04:20
Hi,

Hey, I like that HZence. That's funny.LOL

I will try that <= and >= thing to see if it works. I will let you know if it works.

UnseenGhost

Unseen Ghost
23
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Ohio
Posted: 29th Jul 2003 04:25
I tried the >= and <= thing and it didn't help?

UnseenGhost

HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 29th Jul 2003 04:35
@Ghost: Maybe you should zip the files together and upload them...then maybe we can get a better idea if we actually download and run the files on our PCs.

SW Games - www.freewebs.com/swgames

Yeah, I know, I only have one game. Yeah, I know it sucks. But I made it! Me!

Login to post a reply

Server time is: 2026-07-23 02:37:54
Your offset time is: 2026-07-23 02:37:54