Skip to main content

MLAudioChannelPolicy

Type describing the audio settings for an in-room audio channel.

Members

Properties

NameDescription
MLAudioChannelPolicy.MaxDistanceThe maximum distance which a player in the channel can be heard. [0-inf]
MLAudioChannelPolicy.MinDistanceThe minimum distance which a player in the channel can be heard. [0-inf]
MLAudioChannelPolicy.SpatialBlendSimilar to spatialBlend in audio source, the value defines if the audio is 2D (SpatialBlend=0) or 3D (SpatialBlend=1) [0-1]
MLAudioChannelPolicy.VolumeThe volume of the audio. [0-1]

Constructor

NameDescription
MLAudioChannelPolicy()Creates a new MLAudioChannelPolicy
MLAudioChannelPolicy(volume, spatialBlend, minDistance, maxDistance)Creates a new MLAudioChannelPolicy