UKAudioSystemSettings
(UDeveloperSettings)
(UDeveloperSettings)
Settings for the KAudioSystem located in Project Settings > Plugins > KAudioSystem.
Set the AudioMixerManager subclass to use by the KAudioSystem.
Set the number of AudioAgents spawned in the object pool that persist to be used throughout the lifetime of the game session. This number also defines the max global sound instance limit in the KAudioSystem.
This struct is used to group settings that are mathematically applied when calculating what a global sound steal target. These values are only used by the AudioManagerSubsystem and are not used locally for AudioSuperComponent sound instance limits.
Priority Modifier = Sets the mathematically weight priority has in sound stealing calculations.
Distance Modifier = Sets the mathematically weight distance has in sound stealing calculations.
Distance Scale = Define a curve that is used to produce an output value based on a sound's distance from the listener.
Age Modifier = Sets the mathematically weight age has in sound stealing calculations.
Age Scale = Define a curve that is used to produce an output value based on the age of the sound.
//Lowest score gets stolen
//ASC = AudioSuperComponent
//GSSF = GlobalSoundStealFactors
priority = ASC->soundPriority * GSSF.priorityModifier;
distance = GSSF.distanceScale.Eval(FVector::Dist(sound->GetOwner()->GetActorLocation(), location)) * GSSF.distanceModifier;
age = GSSF.ageScale.Eval(ASC->age) * GSSF.ageModifier;
SCORE = priority + distance + age;