Class AuditySampleEntry
One entry in a Wave Player’s sample list, plus its draw weight (on the entry, not
the source, so one source can be common in one container and rare in another). The
DarkEffekt.Audity.AuditySampleEntry.source is a single audio generator - a bare UnityEngine.AudioClip
(default playback), a settings-bearing DarkEffekt.Audity.AuditySample (loop + trims), or
any custom UnityEngine.Audio.IAudioGenerator (streamed). All three implement
UnityEngine.Audio.IAudioGenerator; the accessors below classify one.
Assembly: DarkEffekt.Audity.Runtime
Section titled “Assembly: DarkEffekt.Audity.Runtime”[Serializable]public sealed class AuditySampleEntryProperties
Section titled “Properties”HasSource
Section titled “HasSource”True when a playable audio source is assigned.
public bool HasSource { get; }Sample
Section titled “Sample”The settings-bearing sample, when the source is one (else null).
public AuditySample Sample { get; }CustomGenerator
Section titled “CustomGenerator”A custom generator source - one that is neither a bare clip nor a sample (else null). A Sound Graph is deliberately excluded (compose graphs via a Subgraph node, not a per-voice streamed leaf), so it never bakes as a source.
public IAudioGenerator CustomGenerator { get; }EffectiveClip
Section titled “EffectiveClip”The clip that supplies PCM (a bare clip, or a sample’s clip); null for a custom generator.
public AudioClip EffectiveClip { get; }EffectiveSourceMode
Section titled “EffectiveSourceMode”Effective source tier (bare clips are in-memory samplers; custom generators stream).
public AuditySourceMode EffectiveSourceMode { get; }Fields
Section titled “Fields”source
Section titled “source”The audio source (AudioClip / AuditySample / custom IAudioGenerator). Stored as an
Object reference because Unity has no interface-typed serialized field for Object
references; the editor slot constrains the picker to UnityEngine.Audio.IAudioGenerator.
public Object sourceweight
Section titled “weight”Random/Shuffle draw weight; 0 disables the entry.
[Range(0, 1)]public float weight