Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ScottDoom on Thu 19/01/2006 04:43:35

Title: Sound Not Playing (SOLVED)
Post by: ScottDoom on Thu 19/01/2006 04:43:35
Alright, I'm not using any fancy scripts or anything for this one but for some reason my sound1.wav isn't playing:
(http://img482.imageshack.us/img482/1859/noscript5oy.gif) (http://imageshack.us)

I placed sound1.wav in the Music folder, in the Speech folder, and even hand-made a Sound folder and placed it in there just for the heck of it. Still, the sound isn't playing in the game... It might be playing, but the volume could be really low. Can I somehow test that? Is there a way to increase the volume? Or do I need to go about this differently?
Title: Re: Sound Not Playing
Post by: Gilbert on Thu 19/01/2006 04:53:38
Place it in the game's folder and try again:

MyGame  <--- here
|_________ Compiled
|____________________ Music
|______________________________ Speech


Try rebuilding the VOX files if it won't work either, also check if the crap "hide known extension" option of your file manager is enabled, so the file wasn't in fact named sound1.wav.wav .
Title: Re: Sound Not Playing
Post by: Barbarian on Thu 19/01/2006 05:01:54
If after following Gilbot's wonderful advice and the wav file still doesn't play for you, then read the following:

On occasion, I've had problems playing ".wav" sound files I found on the internet. They seem to play fine in say, Windows Media Player, but will refuse to play properly in AGS.

I concluded that it was perhaps something strange about the way that particular wav file was saved or what type of sound software created/saved the wav file did something a "little odd" about the way it was saved which prevented it from playing in AGS.

So, a fairly easy way I found to resolve this problem was to "re-save" the wav file using "sound recorder", a simple sound utility that usually comes with Windows by default.

"Sound Recorder" can usually be found from clicking on "Start", "All Programs", "Accessories", "Entertainment", then select "Sound Recorder".

When you have Sound Recoder running, load in your "wav" file in question. Now, here's the trick to re-saving the wav that may make it work. Select "Save As...", of course you may want to make a new name for the wav file at this point. When the "Save As..." options comes up, look for a line that reads "Format", and the button that reads "Change". Click on that button. Now, when the Change options box pops up, select a format such as "PCM" or "MPEG Layer 3". You might need to experiement to see what results work best, but one of those two formats usually seem to work for me. Then, select from "Attributes" a mode you think should sound decent, example: "12.000 kHz, 16 bit, Stereo, 46kb/sec". Now click "OK", then click "Save" button to save the wav file with the new changes.

Now, try the newly saved wav file in your AGS program and see if the wav file will play now.

Ã,  It's worth a try, and its usually worked for me when I found a stubborn wav file that refused to play in AGS. Good luck.
Title: Re: Sound Not Playing
Post by: ScottDoom on Thu 19/01/2006 05:11:18
Quote from: Gilbot V7000a on Thu 19/01/2006 04:53:38
Place it in the game's folder and try again:

MyGameÃ,  <--- here
|_________ Compiled
|____________________ Music
|______________________________ Speech


Try rebuilding the VOX files if it won't work either, also check if the crap "hide known extension" option of your file manager is enabled, so the file wasn't in fact named sound1.wav.wav .


Haha... Thanks, that worked. I dunno... AGS didn't really specificy where it wanted me to place the sound1.wav. And I already have my Windows set to show file extensions. I like it that way. Every good PC user should have it set that way.

I feel really dumb now.
Title: Re: Sound Not Playing (SOLVED)
Post by: Gilbert on Thu 19/01/2006 08:48:50
Actually the Music and Speech subfolders were introduced only for V2.71 and afterwards, before that everything were to be placed in the game's own folder, CJ didn't add a Sound folder for some unknown reasons.