How to know when my audioClip has finished playing?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
sritcp
Posts: 431
Joined: Tue Jun 05, 2012 5:38 pm

How to know when my audioClip has finished playing?

Post by sritcp » Sat Jun 23, 2012 6:04 pm

When a player is used, it sends a message playerFinished when it is done playing. But, when I play an imported audioClip, using

play audioClip "clipName"

how would I know it is finished? (actually, I am trying to make an image blink as long as the audioclip is playing).

Thanks for any help,
Sri.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: How to know when my audioClip has finished playing?

Post by sturgis » Sat Jun 23, 2012 6:08 pm

you can use "the sound" and poll to see if its done.

Code: Select all

if the sound is done then
  stop blinking the image
end if

sritcp
Posts: 431
Joined: Tue Jun 05, 2012 5:38 pm

Re: How to know when my audioClip has finished playing?

Post by sritcp » Sat Jun 23, 2012 6:38 pm

Thanks, sturgis!

Regards,
Sri.

Post Reply