Type Function Library audio.* Return value Boolean Revision Release 2022.3683 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