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

Author
Message
Bryn_boy
20
Years of Service
User Offline
Joined: 14th Dec 2003
Location:
Posted: 30th Apr 2004 14:34
i have placed a sound in my main loop for when the "W" key is pressed (a footstep sound) and im getting an error "sound already exists on line 154". the game loads fine, yet as soon as i press the "w" key it stops and gives the error! i already have an ambient sound in my game (i not sure if that matters).

cheers.
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 30th Apr 2004 20:16
any code? can't really help without it

bibz1st
21
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 2nd May 2004 18:06
are you trying to load the sound into the same number as the ambient sound or are you loding the sound within your main loop?
like mr flibble says, without a bit of code its hard to know
rob
Sparda
20
Years of Service
User Offline
Joined: 13th Jan 2004
Location: Pacifica
Posted: 2nd May 2004 21:49
Yes, the sound must be loaded before the main loop or else your code will try to load to load the sound over itself which results in your error. It must be that you are not playing the sound at each "w" keypress, but you are loading it. Else the prog wouldn't have launched.

There 10 kinds of people, those who understand binary and those who don't

Login to post a reply

Server time is: 2024-11-26 17:20:12
Your offset time is: 2024-11-26 17:20:12