SOLVED: Sounds doesnt play at all

Started by , Fri 15/02/2013 13:58:56

Previous topic - Next topic

Thesie

Hello there!

I just started making my own game one week ago so Im really a beginner. Im watching the tutorials from densming at Youtube and so far everything is great, i makes a lot of fun.
But then I tried to put in some speech and sound, and there is really nothing happening.

I started in the default game (AGS version  3.2.1.111), imported all .wav files into the speech folder and a sound into the sound folder (I saw that you import the sounds into AGS directly with newer versions, which I did also). I called all files as they sould be (speech with 4 letters and one number, sounds just sound1). I run Windows 7 64bit and have an extern soundcard (maybe this is the problem?)

So I dont see where I am doing the mistake, the script looks exactly like the one from densming, and the game starts running withour error.

Please help! :) :cry:

Here for the sound:

aSound1.Play(eAudioPriorityNormal);

Here for the Speech (which is much more important to me):

function room_RepExec()
{
        int i;
        if (IsTimerExpired(1)) {
            i = Random(9);
                if (i==0) cAbraxas.Walk(50, 446, eNoBlock, eWalkableAreas) ;
                else if (i==1) cAbraxas.Say("&5 Whoot Whoot");
                else if (i==2) cAbraxas.Say("&1 Quiek!");
                else if (i==3) cAbraxas.Walk(124, 424, eNoBlock, eWalkableAreas);
                else if (i==4) cAbraxas.Say("&4 Mieep!");
                else if (i==5) cAbraxas.Say("&2 Fiep?");
                else if (i==6) cAbraxas.Walk(241, 457, eNoBlock, eWalkableAreas);
                else if (i==7) cAbraxas.Say("&3 Droggelbecher?");
                else if (i==8) cAbraxas.Say("&6 Quiek, Quiker, Quiken!");
                else cAbraxas.Walk(166, 462, eNoBlock, eWalkableAreas);
            SetTimer(1, 320);
        }

Thesie

Ok guys,

I have found out that the regular background music works, as well as another sound-file (which I dont understand because its also wave, but when I tried to load it into Cubase there was an error which made me sceptical so I changed it). Funny though that in the preview I could play it nontheless..

So the most important error is still there: the speech. This time the file cant be broken, I just recorded it today with Cubase..

Thesie


Problem solved, although I have no idea what the actual problem was.

I just converted the speech files from wav to mp3.

Thanks anyways :) (laugh)

Khris

Please don't double post, you can edit your posts.

WAV should also work, according to the manual. My guess is that you added the files and put the number in the game but didn't "Rebuild all files" from the menu. In that case, the speech.vox file doesn't contain the newly added samples yet at the time you run the game.

SMF spam blocked by CleanTalk