Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Horror on June 15, 2013, 08:19:31 AM

Title: Wait for sound to finish?
Post by: Horror on June 15, 2013, 08:19:31 AM
I've got a scene where I'm trying to make a character talk and then fire an event when the sound is finished. The problem is that it doesn't wait for the clip to finish on either the Play Sound action or the Audio Play action. I would have thought that on the Audio Play action atleast, the state would wait for the sound to finish if you specify an event output.

Not sure if this is a bug or not but if it isn't, what should I do? (preferably without having to add a Wait action that matches the duration of the clip)
Title: Re: Wait for sound to finish?
Post by: jeanfabre on June 17, 2013, 06:35:38 AM
Hi,

 I am not sure there is another way ( apart from using a plugin like audio toolkit for example).

 basically, get the lenght of the clip you want to play, and use this as the waiting vlaue, it can be automated this way and stays flexible.

to do that, simply use "get property" on your audio clip and get the "length".


bye,

 Jean