play sound problem

Marc Siskin msiskin at
Tue Apr 29 17:10:39 EDT 2014


Try adding “with messages” to the wait command.  That should allow other actions to occur while the sound is playing.

On Apr 29, 2014, at 5:05 PM, larry at<mailto:larry at> wrote:

Here is my problem:

I have this in my code:
play audioclip "myClip1.wav"  - which is 8 seconds in duration.
wait 8 seconds
play audioclip "myClip2.wav" looping

The problem is that any form of the wait command means that I cannot do anything else during the wait period - such as clicking on a button to stop play.
So I cannot even use:
wait until the sound is done

How do I wait to play the 2nd clip, but still allow the user to click on a Stop Play button?

use-livecode mailing list
use-livecode at<mailto:use-livecode at>
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Marc Siskin
Manager, Modern Language Resource Center
Carnegie Mellon University
msiskin at<mailto:msiskin at>

More information about the Use-livecode mailing list