audio.unreservedFreeChannels

Type Number
Library audio.*
Revision 2017.3060
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 )