Type Function Library audio.* Return value Boolean Revision 2017.3060 Keywords audio, play See also audio.isChannelActive() audio.pause() audio.play()
Returns true
if the specified channel is currently playing; false
if otherwise.
audio.isChannelPlaying( channel )
Number. The channel you want to know is playing or not.
local isChannel1Playing = audio.isChannelPlaying( 1 ) if isChannel1Playing then audio.pause( 1 ) end