MobilePlaySoindOnChannel and waiting

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

MobilePlaySoindOnChannel and waiting

Post by scotttyang » Mon Apr 14, 2014 9:11 pm

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?
Last edited by scotttyang on Wed Apr 16, 2014 1:53 am, edited 1 time in total.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: MobilePlayOnChannel and waiting

Post by Simon » Tue Apr 15, 2014 2:26 am

Hi scotttyang,
is "soundFinishedOnChannel" what you are looking for?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: MobilePlaySoindOnChannel and waiting

Post by scotttyang » Wed Apr 16, 2014 1:54 am

Simin,

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

Scort

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: MobilePlaySoindOnChannel and waiting

Post by Simon » Wed Apr 16, 2014 2:13 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply