To stop any audio currently 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
abanowBUSTfGf
Posts: 63
Joined: Sat Dec 22, 2012 3:01 am

To stop any audio currently playing

Post by abanowBUSTfGf » Mon Jan 14, 2013 12:56 pm

Is there Livecode script to stop any audio currently playing. I code I have on on object is

put specialFolderPath("engine") & "/soundwavs/sound1.mp3" into tSndPath
play tSndPath

and I want to stop this audio when I click on another button
Also do I have to specify which MP3 to stop or is there a script to stop any playing audio?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: To stop any audio currently playing

Post by Klaus » Mon Jan 14, 2013 1:04 pm

Hi abanowBUSTfGf,

what platform? If not posting to the correct forum, this info is essential!

The answers are in the "XXX Release Notes" PDF, which is the only docs for mobile,
so please take a look there from time to time!

...
## Page 33 -> Basic sound playback support
play empty
..
Will stop any sound currently playing and that has been started with "play soundfile".
If you are using "soundchannels" you need to pass the channle number.


Best

Klaus

Post Reply