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 / Pause Music command freezes my program

Author
Message
mullinator
19
Years of Service
User Offline
Joined: 5th Jul 2007
Location:
Posted: 12th Jul 2010 20:32
Okay, so for some reason, whenever I use the Pause Music command in my program, the whole thing freezes. I havent had this problem with stop music, play music, any of those. Just this one command. Any suggestions?

very simple code, there should be no problem with it


heres the whole program as of now, in case you need to look at it for some reason. not very clean, but im still trying to get the basics of it working, so i'll get to making it look tidy later.
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 12th Jul 2010 20:46
I think this is your problem:

Once paused, the music is no longer playing, so it will not display any info about the song because that stuff is inside the "repeat/until" statement.

I'm not at home now, but from looking at it, it seems that the loop is cut out once the spacebar is pressed.

The fastest code is the code never written.
mullinator
19
Years of Service
User Offline
Joined: 5th Jul 2007
Location:
Posted: 12th Jul 2010 22:00
no, I think DB would just give me an error message then, this just freezes up.

and i tried putting in something else before the main loop



and it still froze, the numbers stopped incrementing, the window became unresponsive. had to end task from task manager :/
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 12th Jul 2010 22:04
That may be a bug.....

The fastest code is the code never written.
Hawkblood
16
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 14th Jul 2010 15:39
pause music freezes me too!!! You can convert your music to .wav and play it and pause it with play sound/pause sound.... That doesn't freeze programs.

The fastest code is the code never written.

Login to post a reply

Server time is: 2026-07-25 03:25:26
Your offset time is: 2026-07-25 03:25:26