CsoundUnity 4.0.0-alpha.3
Loading...
Searching...
No Matches
Csound.Unity.CsoundChildEntry Class Referencesealed

Entry stored in CsoundChildRegistry for one CsoundUnityChild instance operating in the IAudioGenerator path. More...

Package Attributes

string[] ChannelNames
 Names of the audio channels to output, indexed by Unity output channel (0 = left/mono, 1 = right). Length matches the child's AudioChannelsSetting.
CsoundUnity Parent
 The parent CsoundUnity this child reads from.
CsoundUnityChild Child
 The child itself, so Process can hand it each block it plays for namedAudioChannelData and OutputBuffer. Without this the component's observers only ever saw the OnAudioFilterRead path.
float[][] Snapshots
 Per-channel copies of the parent's published blocks, and the cursors into them.
int[] Cursors
int[] StaleCounts
double Zerodbfs
 0dbfs value used to normalise Csound output to Unity's ±1 range.

Properties

bool IsReady [get]
 true once Parent is known and ChannelNames contains at least one entry.

Detailed Description

Entry stored in CsoundChildRegistry for one CsoundUnityChild instance operating in the IAudioGenerator path.

Member Data Documentation

◆ ChannelNames

string [] Csound.Unity.CsoundChildEntry.ChannelNames
package

Names of the audio channels to output, indexed by Unity output channel (0 = left/mono, 1 = right). Length matches the child's AudioChannelsSetting.

◆ Child

CsoundUnityChild Csound.Unity.CsoundChildEntry.Child
package

The child itself, so Process can hand it each block it plays for namedAudioChannelData and OutputBuffer. Without this the component's observers only ever saw the OnAudioFilterRead path.

◆ Cursors

int [] Csound.Unity.CsoundChildEntry.Cursors
package

◆ Parent

CsoundUnity Csound.Unity.CsoundChildEntry.Parent
package

The parent CsoundUnity this child reads from.

Deliberately the instance and not its namedAudioChannelDataDict: those are the parent's live working arrays, written sample by sample on the parent's own audio callback, which is not ordered against this child's. Reading them directly meant sometimes seeing a half-written block — and a parent that stopped updating them (muted, paused, finished) left the child looping its last block for ever instead of falling silent. Snapshots are pulled from the parent's publishers instead.

◆ Snapshots

float [][] Csound.Unity.CsoundChildEntry.Snapshots
package

Per-channel copies of the parent's published blocks, and the cursors into them.

◆ StaleCounts

int [] Csound.Unity.CsoundChildEntry.StaleCounts
package

◆ Zerodbfs

double Csound.Unity.CsoundChildEntry.Zerodbfs
package

0dbfs value used to normalise Csound output to Unity's ±1 range.

Property Documentation

◆ IsReady

bool Csound.Unity.CsoundChildEntry.IsReady
getpackage

true once Parent is known and ChannelNames contains at least one entry.


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