audio.usedChannels

Type Number
Library audio.*
Revision Release 2022.3683
Keywords audio, channels, used channels
See also audio.totalChannels

Overview

Returns the number of channels that are currently in use (playing or paused).

Syntax

audio.usedChannels

Example

local result = audio.usedChannels
print( result )