Skip to main content

Room.TryGetChannelPolicy(number channelID)

Gets the channel policy of the specified channel, if it exists.

Parameters:

NameTypeDescription
channelIDnumberThe channel to retrieve. Range[0-255]

Returns:

typeDescription
booleantrue if the channel is found, false otherwise
MLAudioChannelPolicythe channel policy or nil

Usage

---@type number
local channelID;


local val0, val1 = Room:TryGetChannelPolicy(channelID)