Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Fri 05/12/2003 16:07:52

Title: echo
Post by: on Fri 05/12/2003 16:07:52
First of all sorry if this is not related to this forum, but I wasnt quite sure its not a technical problem itself.
Now my ninja starts in a low mountain, close to the ocean. I set the sound of the sea  and it hears loud but with much echo. Quite... vibrating I migt say. Well its hard to explain in english but its like if he was in a cave or something. Could this be due to the fact that my file is WAV, not OGG? or why do u think this happen?
thanks in advance

kierslowsky
Title: Re:echo
Post by: Alynn on Fri 05/12/2003 18:57:20
Does it do it when you play the wav normally?

Get yourself a wav editor and take out the reverb if it does.
Title: Re:echo
Post by: Ben on Fri 05/12/2003 20:13:02
Well, if the echo is actually in the wav file itself, then it's going to be almost impossible to remove it.

If you only hear the echo in the game, then it's probably because of your sound settings. Sometimes if a game takes a lot of CPU power, the sound processing will slow down and prodice sort of a grinding sound that may sound like an echo. I'd say run the game setup and change your selected sound device.. Also, I think running in full-screen gives better performance.
Title: Re:echo
Post by: on Sat 06/12/2003 05:55:48
Well, actually the file sounds normal outside the game.The problem comes when using it in AGS. I use the script (PlaySound 0) in the repeteadly execute inteaction menu and it all goes good except for that.
Besides, Im playing it in full screen mode so...

thanks anyway Alynn and Ben!

ki
Title: Re:echo
Post by: Ishmael on Sat 06/12/2003 14:44:07
in rep_ex?? every how many loops? why not trying PlayAmbientSound()?
Title: Re:echo
Post by: Ghormak on Sat 06/12/2003 18:37:20
QuotePlaySound 0) in the repeteadly execute inteaction menu

That is exactly your problem. Your sound is starting over from the beginning 40 times per second, and as you can probably imagine that's not going to sound good.

Either look up PlayAmbientSound() as TK suggested (I recommend it as well), or if you definitely want to use PlaySound, do this:

if(IsSoundPlaying() == 0)
 PlaySound(0);
Title: Re:echo
Post by: on Tue 09/12/2003 06:24:45
wow!
worked perfectly!!
thnxxxxxxxxxx

ki
Title: Re:echo
Post by: Gemmalah on Tue 09/12/2003 09:55:29
i get an echo on wav files. i want to put a piano in my game. i got a file with one note on it. when you click on the hotspot it plays the sound.

but it seems to echo because i set repeat to only play once.