audio.usedChannels

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