Skip to content

Class AudityPlayback

Component-free playback: plays a graph at a world position on a mount leased from DarkEffekt.Audity.AudityMountPool, returning an DarkEffekt.Audity.AudityInstance handle. The registry detects the end of playback and frees the slot; fire-and-forget callers can simply drop the handle. Play mode only - scene-authored sources and edit-mode audition go through DarkEffekt.Audity.AuditySource.

Declaration
public static class AudityPlayback

The pooled mount budget: how many concurrent component-free plays (and batch composites) can sound at once before an over-cap play steals the oldest mount. Clamped to 1..64. Set it once at startup for the project’s density.

Declaration
public static int MountCapacity { get; set; }

Play(AudityGraph, Vector3, AudityQuantize, float, AudioMixerGroup, AudityMountSpec)

Section titled “Play(AudityGraph, Vector3, AudityQuantize, float, AudioMixerGroup, AudityMountSpec)”

Component-free playback: plays a graph at a world position on a mount leased from DarkEffekt.Audity.AudityMountPool, returning an DarkEffekt.Audity.AudityInstance handle. The registry detects the end of playback and frees the slot; fire-and-forget callers can simply drop the handle. Play mode only - scene-authored sources and edit-mode audition go through DarkEffekt.Audity.AuditySource.

Declaration
public static AudityInstance Play(AudityGraph graph, Vector3 position = default, AudityQuantize startQuantize = AudityQuantize.Immediate, float fadeInSeconds = 0, AudioMixerGroup mixerGroup = null, AudityMountSpec mountSpec = null)

DarkEffekt.Audity.AudityInstance

Type Name Description
DarkEffekt.Audity.AudityGraph graph
UnityEngine.Vector3 position
DarkEffekt.Audity.AudityQuantize startQuantize
System.Single fadeInSeconds
UnityEngine.Audio.AudioMixerGroup mixerGroup Mixer routing for the leased mount (pooled mounts are hidden, so this is the
only way to route them). Null routes direct to the listener - and clears any
group left by the mount’s previous lease.
DarkEffekt.Audity.AudityMountSpec mountSpec The mount’s physical knobs (volume, host 3D panning, rolloff, Doppler).
Null plays 2D at full volume. Pass
DarkEffekt.Audity.AudityMountSpec.Spatial(System.Single%2cSystem.Single) for a point-in-the-world one-shot.
Applied in full on every play, so no lease inherits the previous one’s
settings. A graph doing its own spatialization (Listener Info + Pan) should
stay 2D - host 3D on top would double-spatialize.