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.

Bug Reports / sound playing requires sync?

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Oct 2010 03:23
Not sure if this is necessarily a bug or what, but when I call sound playing() it's internal value doesn't seem to update unless sync is called.



Technically, the above code would more or less pause the application until the sound finished playing. However, it never exits the loop unless sync is used.

I managed a workaround using timer since I knew the length of the sound being played and it didn't have to be exact.


"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 16th Nov 2010 11:39
What on earth was that? Shouldn't those last two posts have been picked up by the new member post moderation procedure? If not, why not?
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Nov 2010 20:49
Someone obviously wasn't looking at what they approved. She's gone now though.

Utility plug-ins (26-JUL-2010)
I'm applying terms of use that require you to wear a red nose and honk a horn whenever you use the Internet
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 31st Dec 2010 05:00
So if this was rejected, someone mind explaining it to me?

"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Dec 2010 13:07
DBPro's internal housekeeping for sound and music isn't updated until you call either SYNC or FASTSYNC with a parameter of 1. It's the way it's designed.

If you want the sound status to be updated without updating the display, then you can do the following:


Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 31st Dec 2010 17:50
A handy tip - and a new command.

Login to post a reply

Server time is: 2024-04-19 01:24:23
Your offset time is: 2024-04-19 01:24:23