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.

Newcomers DBPro Corner / Problems with playing sounds

Author
Message
mR n
23
Years of Service
User Offline
Joined: 25th Jun 2003
Location:
Posted: 7th Aug 2003 21:42
There's this weird problem in my astroids clone game (final version to be out in a couple of days!!! whooohoo) where it'll play one sound just fine but if you add more the other ones will just play a couple of times and then not at all. Any help at all would be mucho apprecidio...

**the code is attached but it requires media so you can't actually test it out. also, sound 2 is the one that only plays a little.
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 8th Aug 2003 05:34 Edited at: 8th Aug 2003 05:41
There is a small bug in DBPro when playing sounds with:

Play Sound <sound number>

Internaly the sound does not reset itself correctly, however there is a way around this by adding a zero on the end:

Play Sound <sound number>, 0

This forces DBPro to play the sound from the very first sound byte.

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.
mR n
23
Years of Service
User Offline
Joined: 25th Jun 2003
Location:
Posted: 8th Aug 2003 08:05
awww man! you're the coolest. all my games have been plagued by defective sounds but not anymore! and the people rejoice! (at least i am...) thanks a lot! i never would've figured that out...

CarlTaylor
23
Years of Service
User Offline
Joined: 13th Jan 2003
Location: United States
Posted: 9th Aug 2003 04:31
yeah thanks, thatll come in handy some day soon i expect

P4 2gig, 256mb RAM, 64mb DDR NVIDIA GeForce4 Ti 4200 w/ TV Out

Login to post a reply

Server time is: 2026-07-09 02:35:18
Your offset time is: 2026-07-09 02:35:18