Class AudityMountSpec
The physical state of a pooled mount for one DarkEffekt.Audity.AudityPlayback.Play(DarkEffekt.Audity.AudityGraph%2cUnityEngine.Vector3%2cDarkEffekt.Audity.AudityQuantize%2cSystem.Single%2cUnityEngine.Audio.AudioMixerGroup%2cDarkEffekt.Audity.AudityMountSpec):
the host AudioSource knobs that decide how the play sits in the world. Pooled
mounts are hidden and author-less, so this spec is the only way to set these
knobs - and every lease applies its spec in full, so a play never inherits the
previous lease’s settings. Scene-authored AudioSources are untouched by design:
there the Inspector is the spec (the one-property contract).
The default spec is 2D: full volume routed straight to the listener, position
ignored by the panner. DarkEffekt.Audity.AudityMountSpec.Spatial(System.Single%2cSystem.Single) is the point-in-the-world one-shot. A class,
not a struct, so partial object initializers keep every unset knob at its
default; build one spec per kind of sound and reuse it across plays.
Assembly: DarkEffekt.Audity.Runtime
Section titled “Assembly: DarkEffekt.Audity.Runtime”public sealed class AudityMountSpecFields
Section titled “Fields”volume
Section titled “volume”Mount volume, 0..1. Post-generator, like any AudioSource volume.
public float volumespatialBlend
Section titled “spatialBlend”0 = 2D (position ignored), 1 = full host 3D panning and distance attenuation.
public float spatialBlendrolloffMode
Section titled “rolloffMode”Distance attenuation shape (3D only).
public AudioRolloffMode rolloffModeminDistance
Section titled “minDistance”Distance of full volume, in metres (3D only).
public float minDistancemaxDistance
Section titled “maxDistance”Where attenuation stops, in metres (3D only).
public float maxDistancedopplerLevel
Section titled “dopplerLevel”Host Doppler amount (3D only). Defaults to 0, not Unity’s 1: a pooled mount never moves, so the only Doppler it could have is the listener’s own motion warping a stationary sound. Opt in deliberately.
public float dopplerLevelspread
Section titled “spread”Speaker spread angle in degrees, 0..360 (3D only).
public float spreadMethods
Section titled “Methods”Spatial(float, float)
Section titled “Spatial(float, float)”A host-3D point one-shot: full spatial blend with the given attenuation range.
public static AudityMountSpec Spatial(float minDistance = 1, float maxDistance = 500)Returns
Section titled “Returns”DarkEffekt.Audity.AudityMountSpec
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Single |
minDistance |
System.Single |
maxDistance |