Control struct for CsoundUnityChild IAudioGenerator path.
More...
|
| 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.
|
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.
◆ 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
-
| context | The control thread context Unity passes in. |
| realtime | The unmanaged realtime struct Unity keeps for this instance. |
| format | The audio format Unity is configuring. |
| setup | Filled with the setup Unity needs for the instance. |
| properties | The instance properties, which this may adjust. |
◆ Dispose()
| void Csound.Unity.CsoundChildControl.Dispose |
( |
ControlContext | context, |
|
|
ref CsoundChildRealtime | realtime ) |
|
inline |
No teardown needed.
- Parameters
-
| context | The control thread context Unity passes in. |
| realtime | The 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
-
| context | The control thread context Unity passes in. |
| pipe | The pipe that carries messages between the control and audio sides. |
| message | The 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
-
| context | The control thread context Unity passes in. |
| pipe | The pipe that carries messages between the control and audio sides. |
◆ InstanceId
| int Csound.Unity.CsoundChildControl.InstanceId |
|
package |
◆ isFinite
| bool Csound.Unity.CsoundChildControl.isFinite |
|
get |
◆ isRealtime
| bool Csound.Unity.CsoundChildControl.isRealtime |
|
get |
◆ length
| DiscreteTime? Csound.Unity.CsoundChildControl.length |
|
get |
The documentation for this struct was generated from the following file: