audio.unreservedFreeChannels

Type Number
Library audio.*
Revision Release 2024.3703
Keywords audio, channels, unreserved free channels
See also audio.unreservedUsedChannels

Overview

Returns the number of channels that are currently available for playback (channels not playing or paused), excluding the channels which have been reserved.

Syntax

audio.unreservedFreeChannels

Example

local result = audio.unreservedFreeChannels
print( result )