Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: He-Man on Tue 31/05/2005 17:39:11

Title: skipping voice before finished [SOLVED]
Post by: He-Man on Tue 31/05/2005 17:39:11
Hi
I am just playing around with some voice in my game.
The characters speak and the sound files are played when they should, but the text skips and the next line starts playing before the first sound is finished.
Is there anyway to make AGS wait to skip to the next text line until the first voice sound is through?
I've searched the forums and manual but i can't seem to find the answer anywhere!
Title: Re: skipping voice before finished
Post by: strazer on Tue 31/05/2005 19:24:21
That should be the default behaviour.
What format are the voice sound files in? I've read several posts of people whose OGG files were cut short so they had to extend them with a second of silence.
Title: Re: skipping voice before finished
Post by: He-Man on Tue 31/05/2005 20:29:21
Thanks but...
The fomat mp3 so that should not be a problem.
AGS just begins the next the sound and speech before the sound playing is finished playing...
What commands do I use to switch the settings?
I thought about making the speech text skip later with the wait function but then the player would have to wait for no reason if he/she clicked the mouse the skip the speech...
Title: Re: skipping voice before finished
Post by: Ishmael on Tue 31/05/2005 21:08:45
See the WaitMouseKey() function. It was atleast called that in the old scripting... Might be of some use.
Title: Re: skipping voice before finished [SOLVED]
Post by: He-Man on Thu 02/06/2005 11:56:17
You were right Strazer though the files weren't OGG...
I tried extending the sound that were cut and it worked!
So thanks a lot.
The only problem now is that it's going to take a while to make the silence in the end of the sound the right length. But i can live with that...
WORD!
Title: Re: skipping voice before finished [SOLVED]
Post by: Rui 'Trovatore' Pires on Thu 02/06/2005 16:41:22
Ok, so I'm kinda hijacking, but it's relevant, methinks. CJ, about these strange issues, do you have any idea what causes them? I'm not asking for a solution, just whether you've figured out what's happening.
Title: Re: skipping voice before finished [SOLVED]
Post by: Pumaman on Thu 02/06/2005 19:22:07
Is it just MP3 that causes the problem? I'm pretty sure OGG was fixed.
Title: Re: skipping voice before finished [SOLVED]
Post by: Rui 'Trovatore' Pires on Thu 02/06/2005 19:23:47
It was? I thought it was common to both digital outputs, since it also happened with MP3 apparently... but if OGG was fixed, so much the better.