Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Struct · Ara

AudioGraphSource

Plays a procedural audio graph (an ara-audio-graph graph document, domain audio) from this entity, spatialized and attenuated by its AudioSource (whose clip stays empty). Gameplay writes parameters and bumps triggers; the audio presenter forwards changes sample-accurately at the next control frame.

public struct AudioGraphSource : IComponent<AudioGraphSource>

Properties

TypeIndex

public static uint TypeIndex { get; }

Stable engine component index.

Fields

Graph

public string Graph;

The audio graph document.

Default: null.

Parameters

public Dictionary<string, float> Parameters;

Parameter values by name (clamped to the graph's declared ranges).

Default: {}.

Triggers

public Dictionary<string, uint> Triggers;

Trigger counters by name: each increment fires the trigger once.

Default: {}.

Methods

Access

public static ref AudioGraphSource Access(Entity entity, bool write);

No description yet.

Insert

public static void Insert(in Commands commands, Entity entity, in AudioGraphSource value);

No description yet.

Contains

public static bool Contains(Entity entity);

No description yet.