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 / Very weird music bug

Author
Message
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 16th Sep 2015 05:55
In my game one of the things you could do it's playing the guitar.
It works by pressing a specific key to trigger the music piece to play, out of a total of 12 different pieces.

Now, for some reasons, if I keep playing after a while, a Dbpro bug stops the musics and I can't trigger anymore any sound.
The weird thing it's that if for example I try to quit the music routine, and go to do something else, where is required to load an object for example, the game quits saying that it can't load the object.

If I try to do this last thing without bugging the sounds the object works normally (as the object is in the correct folder).

I still didn't figure out what is exactly bugging the game but this is getting frustrating, I thought that dbpro had just a few bugs left but this is becoming irritating as everything you try to do is bugged.

Does anyone knows perhaps a bug with the music commands? in particular play music, stop music, and music playing() commands?
(except the volume bug which I already know)

It's very weird how a music bug could break other things such as load object commands (or something related to that anyway)

(the pieces I use are little .mp3 files loaded as music and not sound)
Morcilla
22
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 16th Sep 2015 18:23
I recall having problems if too many music files were loaded at the same time (depending on their size).

If not already doing it, try to load only one music file at a time.

Also consider posting the source code, so other users can test it. Perhaps the error is somewhere else.

Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 16th Sep 2015 19:21
Using wav files seems to have fixed the problem (seems because the bug happpend randomly so who knows).
Loading each time will give a delay when pressing the key and playing the sound so it's not a good idea, i will see if the wav files fixed the problem finally, testing the game tonight.

Login to post a reply

Server time is: 2025-08-09 02:29:12
Your offset time is: 2025-08-09 02:29:12