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 / 'Loop music' question

Author
Message
Ole Sparky
23
Years of Service
User Offline
Joined: 6th Dec 2002
Location: United States
Posted: 30th Apr 2003 05:41
Where in a Do...Loop loop would I insert a 'loop music' command?

I tried...

loop music 1
do

loop

and...

do
loop music 1

loop


My latest game is almost done, except for the music. Any help is appreciated, thanks!
#@&*(%$()!!!
CloseToPerfect
23
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 30th Apr 2003 07:06
did you have a problem with

loop music 1
do

loop

I usually put the controls in the loop my self something like
if music looping(1) = 0 then loop music 1

CTP

Ole Sparky
23
Years of Service
User Offline
Joined: 6th Dec 2002
Location: United States
Posted: 30th Apr 2003 07:31
Nope... that doesn't work... but, like most problems with DarkBASIC/Pro, there's a way around it... Thanks for your help, though!

#@&*(%$()!!!
TheCyborg
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 30th Apr 2003 14:31
Try this:



Ole Sparky
23
Years of Service
User Offline
Joined: 6th Dec 2002
Location: United States
Posted: 30th Apr 2003 15:16
Nope, that doesn't work either... there's something wrong with my computer, isn't there?

#@&*(%$()!!!
CloseToPerfect
23
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 30th Apr 2003 15:37
what type of music are you tring to play?

CTP

Rollit
23
Years of Service
User Offline
Joined: 26th Apr 2003
Location:
Posted: 30th Apr 2003 22:51
it should be like this I guess

load Music "Music.mp3",1
loop music 1

do
...
loop


it plays for me but I have not tried to wait to see if it loops....DOH!
Ole Sparky
23
Years of Service
User Offline
Joined: 6th Dec 2002
Location: United States
Posted: 1st May 2003 00:11
I'm trying to play MIDIs...

#@&*(%$()!!!
CloseToPerfect
23
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 1st May 2003 01:34
ahh, your missing your windows midi drivers, I've had that problem before.

run you windows troubleshooter.

CTP

Login to post a reply

Server time is: 2026-07-11 17:26:22
Your offset time is: 2026-07-11 17:26:22