Page 1 of 1

Some audio clips in Sequence doesn't play

Posted: Fri Oct 08, 2021 4:51 pm
by Flarn1
Hello pixel crushers!

A little problem that's been bugging me...

I have different audio clips in my Sequence field with AudioWait in front of them. I also have a type writer effect on the subtitle text. In most cases they play fine but now and then the Dialouge system skips playing the audio and the type writer effect all together and displays the text right away. But this only seems to happen with some audio files! although they are all the same format and pretty much the same length, so I can't figure out why. Is this a bug?

Thanks in advance for any input!

/T

Re: Some audio clips in Sequence doesn't play

Posted: Fri Oct 08, 2021 8:41 pm
by Tony Li
Hi,

Are there any errors or warnings in the Console window?

Do you have more than one AudioWait() command in a single node's Sequence field? If so, you probably don't want to play them at the same time. For example, the Sequence below will try to play audio clips AAA, BBB, and CCC all at the beginning of the sequence:

Code: Select all

AudioWait(AAA);
AudioWait(BBB);
AudioWait(CCC);
Instead, you can specify the additional clips to play in a single command:

Code: Select all

AudioWait(AAA, speaker, BBB, CCC)
Alternatively, you can use messages:

Code: Select all

AudioWait(AAA)->Message(DidAAA);
AudioWait(BBB)@Message(DidAAA)->Message(DidBBB);
AudioWait(CCC)@Message(DidBBB)