Skip to main content

MLAudioChannelPolicy(number volume, number spatialBlend, number minDistance, number maxDistance)

Creates a new MLAudioChannelPolicy

Parameters:

NameTypeDescription
volumenumberThe volume
spatialBlendnumberSpatial Blend
minDistancenumberminDistance
maxDistancenumbermaxDistance

Usage

---@type number
local volume;

---@type number
local spatialBlend;

---@type number
local minDistance;

---@type number
local maxDistance;


local mlaudiochannelpolicy = MLAudioChannelPolicy(volume, spatialBlend, minDistance, maxDistance);