Page 1 of 1

MobilePlaySoindOnChannel and waiting

Posted: Mon Apr 14, 2014 9:11 pm
by scotttyang
Is there any way with mobilePlaySoundOnChannel to use something like...

Wait until the sound is done?

When using the mobilePlaySoundOnChannel with the "next" especially in a repeat loop, the sounds play through one another. A method like the old Wait until the sound is done would be nice.

Any ideas?

Re: MobilePlayOnChannel and waiting

Posted: Tue Apr 15, 2014 2:26 am
by Simon
Hi scotttyang,
is "soundFinishedOnChannel" what you are looking for?

Simon

Re: MobilePlaySoindOnChannel and waiting

Posted: Wed Apr 16, 2014 1:54 am
by scotttyang
Simin,

Do you have a sample script for how to use it...slim example in dictionary..

Scort

Re: MobilePlaySoindOnChannel and waiting

Posted: Wed Apr 16, 2014 2:13 am
by Simon
Hi Scort,

Code: Select all

on soundFinishedOnChannel pChannel, pSound
   put pChannel into field "channel"
   put pSound into field "finished sound"
end soundFinishedOnChannel
Is pretty clear.
You won't get that message triggered until the sound has finished playing just like "wait".

Simon