CsoundUnity 4.0.0-alpha.3
Loading...
Searching...
No Matches
Csound.Unity.CsoundChildRegistry Class Reference

Shared static registry of CsoundChildEntry objects for the CsoundUnityChild IAudioGenerator path. More...

Static Package Functions

static int Register (CsoundChildEntry entry)
 Registers a child entry and returns the stable integer ID to store in CsoundChildRealtime.InstanceId and CsoundChildControl.InstanceId.
static void Unregister (int id)
 Nulls out the slot at id so the audio thread returns silence after the child is destroyed. IDs remain stable.
static CsoundChildEntry GetEntry (int id)
 Returns the entry at id , or null if not found.

Detailed Description

Shared static registry of CsoundChildEntry objects for the CsoundUnityChild IAudioGenerator path.

Mirrors the design of CsoundBridgeRegistry: each child stores only an integer ID in its unmanaged CsoundChildRealtime struct and looks up the managed entry at audio-thread time.

Member Function Documentation

◆ GetEntry()

CsoundChildEntry Csound.Unity.CsoundChildRegistry.GetEntry ( int id)
inlinestaticpackage

Returns the entry at id , or null if not found.

◆ Register()

int Csound.Unity.CsoundChildRegistry.Register ( CsoundChildEntry entry)
inlinestaticpackage

Registers a child entry and returns the stable integer ID to store in CsoundChildRealtime.InstanceId and CsoundChildControl.InstanceId.

◆ Unregister()

void Csound.Unity.CsoundChildRegistry.Unregister ( int id)
inlinestaticpackage

Nulls out the slot at id so the audio thread returns silence after the child is destroyed. IDs remain stable.


The documentation for this class was generated from the following file: