Some audio clips in Sequence doesn't play

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Flarn1
Posts: 1
Joined: Wed Sep 29, 2021 8:04 am

Some audio clips in Sequence doesn't play

Post 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
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Some audio clips in Sequence doesn't play

Post 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)
Post Reply