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 still not working?

Author
Message
ShellfishGames
13
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 14th Apr 2014 18:14 Edited at: 16th Apr 2014 03:28
Hey guys,

this seems to be a bug that has been around for ages, although surprisingly few people seem to bother. It was mentioned in these threads:

http://forum.thegamecreators.com/?m=forum_view&t=172538&b=1
http://forum.thegamecreators.com/?m=forum_view&t=194806&b=1
http://forum.thegamecreators.com/?m=forum_view&t=166898&b=15

So it seems to date back to 2010 if not earlier. I'm using DBP 7.61 and still got the same problem: the pause music command simply crashes my application.

Apparently converting the music file to wav and using pause sound should work, but this would mean ~30mb of additional data for each of my music tracks. Isn't there a better solution?

In case anybody wants to try it out, just use the DBP help code for pause music:



As soon as the music stops, the program just freezes and doesn't react to anything anymore. Does this happen to everybody? Or is there a version of DBP where the bug has been fixed?

Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 14th Apr 2014 19:17 Edited at: 14th Apr 2014 19:18
Yours crashed on me too...

Try this:



666GO†O666
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 14th Apr 2014 20:42
Having to rewrite your code is annoying, but if you can't find another way around it, there's an old Enhanced Audio plugin!
http://forum.thegamecreators.com/?m=forum_view&t=84732&b=8
Haven't used it myself, but I'm guessing the pause command works in that
Good luck!
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Apr 2014 23:32
As far as I can tell your code works fine for me - using U77RC7.

Several bugs were fixed in that update.

Doesn't crash anyway.



Powered by Free Banners

Login to post a reply

Server time is: 2026-07-06 12:46:02
Your offset time is: 2026-07-06 12:46:02