CsoundUnity 4.0.0-alpha.3
Loading...
Searching...
No Matches
Csound.Unity.CsoundChildControl Struct Reference

Control struct for CsoundUnityChild IAudioGenerator path. More...

Inheritance diagram for Csound.Unity.CsoundChildControl:

Public Member Functions

void Configure (ControlContext context, ref CsoundChildRealtime realtime, in AudioFormat format, out GeneratorInstance.Setup setup, ref GeneratorInstance.Properties properties)
 Synchronises CsoundChildRealtime.InstanceId and creates the audio Setup. No command queue — the child is read-only with respect to Csound.
void Dispose (ControlContext context, ref CsoundChildRealtime realtime)
 No teardown needed.
void Update (ControlContext context, ProcessorInstance.Pipe pipe)
 No pipe messages.
ProcessorInstance.Response OnMessage (ControlContext context, ProcessorInstance.Pipe pipe, ProcessorInstance.Message message)
 No incoming messages.

Package Attributes

int InstanceId
 Index into CsoundChildRegistry.

Properties

bool isFinite [get]
 Not finite.
bool isRealtime [get]
 Realtime.
DiscreteTime? length [get]
 Infinite.

Detailed Description

Control struct for CsoundUnityChild IAudioGenerator path.

Fully unmanaged struct implementing GeneratorInstance.IControl (with CsoundChildRealtime) and GeneratorInstance.ICapabilities. Its only job is to synchronise CsoundChildRealtime.InstanceId before each audio block.

Member Function Documentation

◆ Configure()

void Csound.Unity.CsoundChildControl.Configure ( ControlContext context,
ref CsoundChildRealtime realtime,
in AudioFormat format,
out GeneratorInstance.Setup setup,
ref GeneratorInstance.Properties properties )
inline

Synchronises CsoundChildRealtime.InstanceId and creates the audio Setup. No command queue — the child is read-only with respect to Csound.

Parameters
contextThe control thread context Unity passes in.
realtimeThe unmanaged realtime struct Unity keeps for this instance.
formatThe audio format Unity is configuring.
setupFilled with the setup Unity needs for the instance.
propertiesThe instance properties, which this may adjust.

◆ Dispose()

void Csound.Unity.CsoundChildControl.Dispose ( ControlContext context,
ref CsoundChildRealtime realtime )
inline

No teardown needed.

Parameters
contextThe control thread context Unity passes in.
realtimeThe unmanaged realtime struct Unity keeps for this instance.

◆ OnMessage()

ProcessorInstance.Response Csound.Unity.CsoundChildControl.OnMessage ( ControlContext context,
ProcessorInstance.Pipe pipe,
ProcessorInstance.Message message )
inline

No incoming messages.

Parameters
contextThe control thread context Unity passes in.
pipeThe pipe that carries messages between the control and audio sides.
messageThe message Unity is delivering.
Returns
Whether the message was handled.

◆ Update()

void Csound.Unity.CsoundChildControl.Update ( ControlContext context,
ProcessorInstance.Pipe pipe )
inline

No pipe messages.

Parameters
contextThe control thread context Unity passes in.
pipeThe pipe that carries messages between the control and audio sides.

Member Data Documentation

◆ InstanceId

int Csound.Unity.CsoundChildControl.InstanceId
package

Index into CsoundChildRegistry.

Property Documentation

◆ isFinite

bool Csound.Unity.CsoundChildControl.isFinite
get

Not finite.

◆ isRealtime

bool Csound.Unity.CsoundChildControl.isRealtime
get

Realtime.

◆ length

DiscreteTime? Csound.Unity.CsoundChildControl.length
get

Infinite.


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