audio.unreservedFreeChannels

Type Number
Library audio.*
Revision Current Public Release (2017.3068)
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 )