Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nexic on Sat 26/02/2005 18:42:36

Title: Sound Effects?
Post by: Nexic on Sat 26/02/2005 18:42:36
According to the help all you need to do is have your sounds in the main directory, like so: sound0.wav , sound1.wav, sound2.wav and so on, just like rooms. But when I tell it to 'rebuild vox files' a vox file never appears in the 'compiled directory' and the sound is never played. Also it usually comes up with a warning after exiting the program saying sound X could not be loaded. What am I doing wrong?
Title: Re: Sound Effects?
Post by: strazer on Sat 26/02/2005 19:42:12
Sound effects are compiled into the exe, only music and speech files are in seperate vox files.

AGS Beginners FAQ (http://americangirlscouts.org/agswiki/Music%2C_Sound_%26_Speech#Music.2Fspeech.2Fsound_not_working_properly_or_at_all)

Be sure you're using uncompressed, PCM wave files.
Title: Re: Sound Effects?
Post by: DoorKnobHandle on Sat 26/02/2005 19:43:03
And do you execute the PlaySound function anywhere in your script?
Title: Re: Sound Effects?
Post by: Nexic on Sat 26/02/2005 20:18:40
I have several PlaySounds along with AddScore (which is set to play a sound on receiving a point)

I tried a different wave file, and this time it reconised it was there and asked me if I wanted to rebuild the vox files. But it still didn't play them during the game, and came up with warnings.
Title: Re: Sound Effects?
Post by: Nexic on Sat 26/02/2005 20:40:00
After placing the sound in the 'compiled' directory I managed to get the game to play it when you do one thing, but it wont play it on other things. Both things use the exact same sound....
Title: Re: Sound Effects?
Post by: Gilbert on Mon 28/02/2005 02:03:22
What are these "two things" and how did you incorporate the sound (ie. how did you script it) into them?