Type Function Library audio.* Return value Boolean Revision Current Public Release (2013.1076) Keywords audio, channel, active Sample code /CoronaSDK/SampleCode/Media/AudioPlayer See also audio.play()
audio.pause()
Returns true if the specified channel is currently playing or paused; false if otherwise.
audio.isChannelActive( channel )
Number. The channel you want to know is active or not.
local isChannel1Active = audio.isChannelActive( 1 )
if isChannel1Active then
audio.stop( 1 )
end