audio.freeChannels

Type Number
Library audio.*
Revision Release 2024.3703
Keywords audio, channels, free channels
See also audio.findFreeChannel()
audio.play()
audio.reserveChannels()

Overview

This property is equal to the number of channels that are currently available for playback (channels not playing or paused).

Syntax

audio.freeChannels

Example

local result = audio.freeChannels
print( result )