Manual Engine
Processes the graph on demand: each call to the process action runs one buffer through it on the caller's thread, with the input and output buffers each optional. The graph starts as soon as it is set, so start is not needed.
Configuration
Inherits configuration from its parent, Engine.
This object does not provide any additional configuration.
Properties
Inherits properties from its parents, Engine, SwitchboardObject.
This object does not provide any additional properties.
Actions
Inherits actions from its parents, Engine, SwitchboardObject.
process
Runs one buffer through the graph on the caller's thread. The buffers are native memory pointers, so this action is only usable from native code. When inputBuffer is omitted the graph receives no input, and when outputBuffer is omitted the graph's output is discarded. A graph must be set before calling it.
Parameters
| Name | Type | Description |
|---|---|---|
inputBuffer (Optional) | Object | Pointer to the 32-bit float samples fed into the graph. For one channel it points to the samples; for more channels it points to interleaved samples when isInterleaved is true, otherwise to an array of per-channel sample pointers. |
isInterleaved (Optional) | Boolean | Whether the multichannel buffers hold interleaved samples rather than per-channel pointers. Ignored for one channel. Defaults to false when omitted. |
numChannels | Int | Number of channels in the input and output buffers. |
numFrames | Int | Number of frames in the input and output buffers. |
outputBuffer (Optional) | Object | Pointer to the memory the graph's 32-bit float output is written to, laid out the same way as inputBuffer. |
sampleRate | Int | Sample rate of the audio in the buffers, in Hz. |
Return Value
Boolean — Always true.
Events
This object does not provide any events.