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 / Music Loop Problem

Author
Message
Peregrin
21
Years of Service
User Offline
Joined: 13th Mar 2004
Location:
Posted: 13th Mar 2004 14:35
Greetings, all.
I've designed a very simple 3D labyrinth game, with a background music: I've therefore included the instructions "load music" and "loop music" before my main program loop.
The game runs fine at fps 25 until the music ends for the first time. Then 1. it doesn't play again and 2. the fps rate crashes down to 8 and my game gets all shaky.
What would be the source of this problem ?
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 14th Mar 2004 21:11
I had this problem to with Night Forest Hunter. You are using a MIDI right? (I think so)

Try using a wav/mp3 or use a timer to play/stop the midi.

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Peregrin
21
Years of Service
User Offline
Joined: 13th Mar 2004
Location:
Posted: 15th Mar 2004 12:26
DBC can play mp3 ?! Gee, that's swell ! ^_^
Thanx, Baal !
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 15th Mar 2004 20:27
DBC... MP3? How!

DragnBreth
of
Dragael Software
Peregrin
21
Years of Service
User Offline
Joined: 13th Mar 2004
Location:
Posted: 16th Mar 2004 14:07
Still, it doesn't tell me why this is happening...
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 16th Mar 2004 14:31
Code Ninja,
DBC has always been able to play .mp3 - my very first DB project was an mp3 player . Just load it in and play it, could'nt be simpler.

Peregrin,
Midi music is both the lowest quality, and strangely one of the most complicated. It could be that DB is getting confused at the end of the file, a midi signal is sorta messy you see - all control codes and data - we don't have a lot of control over them, the guys who compose midi files don't even have a lot of control over them!.

I would suggest using a .mod or .it music file, from a soundtracker like Modplugs - they're small, and sound much better than midi files. DB will load and play soundtracker files better than .mid.


Van-B


The nature of Monkey was irrepressible!.
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 17th Mar 2004 20:58 Edited at: 17th Mar 2004 20:58
oh... ... y'see they don't even say that in the help files. they only mention midi's. thanx, Van B

DragnBreth
of
Dragael Software
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 18th Mar 2004 09:19
Uhm, Darkbasic has more secrets than mentioned



Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 18th Mar 2004 17:16
oh... cool ... thnx

DragnBreth
of
Dragael Software
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 18th Mar 2004 19:06
Direct Draw Surfaces??/ Woohoo!

I thought all the custom paint I did with trueSpace3 would go to waste!

Crazy Donut Productions
Current Project: KillZone

Login to post a reply

Server time is: 2025-05-31 20:54:08
Your offset time is: 2025-05-31 20:54:08