May Be,Silly Sound Question

Started by LawAmunRa, Mon 11/07/2005 00:56:40

Previous topic - Next topic

LawAmunRa

How do I play sounds in my test game.
Ive read that You have to copy Your .wav/.mp3 file to Your Game Directory;and have done,but when I try to play a sound (sound.nn),e.g.after you have picked up an object.It dont play.I havent assimilated scripting yet,as I have to sleep at some time.
Can Anyone Help.Please.

InCreator

#1
* did you save your sounds in proper filename format?

sound1.wav
sound2.mp3

etc

* the game directory is where all project files are, like

ac2game.ags
acsprset.spr
editor.dat
roomx.crm

...and other files. That's the right one, it's most likely inside the folder where AGS program itself is (a subfolder in AGS main folder). The compiled (final, excecutable game with .exe file will be in separate folder, called "compiled" by default, that's not the one where to put sound files). The right folder is also usually named the same that your game is.

So, check if you put them to right folder.

* AGS should have asked for rebuilding VOX files before test-compiling (after you added sounds), but if it somehow didn't, select "Rebuild VOX files" from "Game" menu in AGS main screen (shortcut key - Ctrl+B (ags 2.7))

* It's unlikely, but maybe you forgot to recompile the game after adding sounds! For any case, do it again (File menu, "Test game") 

* Also unlikely, but possible: If you ripped the sounds straight from internet and even worse - all from same website, they may have some weird digital signature that keeps them from playing. I've witnessed such things before, some websites just protect their WAVs in some weird way. Your random media player (Winamp, Windows Media Player, Quicktime, etc) may play it fine, but AGS not. I suggest testing the files (and whole problem) with something else, like try using a mp3 song as a sound or something that surely has to play fine. Then you'll know that problem isn't in wav files. Best way to make sure is make your own sound file, take windows recorder or any other recording program, and a microphone... this HAS to work.

Hope it helps.

LawAmunRa

Yeh Im doing that right I think its what Your saying about files being protected from playing frow internet sites shame I only wanted something to use to test,and did not want to sample my own sounds..Well not Yet.
Do any-one know if a programme exists like octamed(AMIGA) for the P.C.

Candle

#3
You using wav files or mp3 ogg ?
I find that mp3 or ogg files don't play for me for sound but wav files do .
Were mp3 and ogg play fine for music files .

Gilbert

Also, read this, there may be one or more tips that can help you to start stuff working.

LawAmunRa

Well I've read the link than you gave me;Thank You;but it
still dont work;what I dont know,or know how to find out and then resolve,is whether the .wav file is compressed.
I dont think it is,but You(I) never know.

SMF spam blocked by CleanTalk