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 / Disappearing sound

Author
Message
jamma
22
Years of Service
User Offline
Joined: 21st Nov 2002
Location:
Posted: 25th Feb 2003 11:35
Not played about much with sound but I'm adding some samples to my game code now and wondering if there's any tips on this. My "laser firing" sound works once, as does the explosion of a hit alien, but then all sounds just vanish. Any advice anyone ?

SB 128 PCI, no other problems with it.
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 25th Feb 2003 23:50
There does appear to be a minor problem with the sound playback when used like so:

Play Sound <sound number>

After each time you play a sound it seems to reset itself incorrectly. A bug that, hopefully, will be corrected in a future patch (fingers crossed).

However there is a way around this problem. Force the sound to play from the very first sound byte by adding a zero on the end.

Play Sound <sound number>, 0

Hope this helps

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
jamma
22
Years of Service
User Offline
Joined: 21st Nov 2002
Location:
Posted: 26th Feb 2003 10:39
Thanks for that. After a day of twiddling I stumbled upon the solution you gave me. Very odd bug...but thanks for the response.

Login to post a reply

Server time is: 2025-05-20 14:07:37
Your offset time is: 2025-05-20 14:07:37