MLAudioSpatialSoundDistanceProperties
Module: Audio / Audio Definitions / Acoustics / Spatial Sound
#include <ml_audio.h>
Public Attributes
Type | Name |
---|---|
float | min_distance |
float | max_distance |
float | rolloff_factor |
Detailed Description
struct MLAudioSpatialSoundDistanceProperties;
Properties describing the distance attenuation of a spatial sound using two distances, between which attention values are interpolated.
Public Attributes Documentation
min_distance
float min_distance;
Distance until which sound is at full volume. Range is 0 to FLT_MAX. Default is 1.
max_distance
float max_distance;
Distance beyond which sound gets no quieter. Range is min_distance to FLT_MAX. Default is FLT_MAX.
rolloff_factor
float rolloff_factor;
Scale factor relative to real-world distance attenuation. Range is 0 to FLT_MAX. Default is 1 (real world).