Client.processAudio

Process frames audio frames.

Read audio input from inputs channels, and write it to outputs channels.

class Client
nothrow @nogc abstract nothrow @nogc
void
processAudio
(
const(float*)[] inputs
,
float*[] outputs
,
int frames
,)

Parameters

inputs const(float*)[]

Input channels pointers, each pointing to frames audio samples. Number of pointer is equal to numInputs given in last reset() callback. Unconnected input pins (if any) point to zeroes.

outputs float*[]

Output channels pointers, each pointing to frames audio samples. Number of pointer is equal to numOutputs given in last reset() callback. The output space can be used as temporary storage. (do not modify these non-const pointers).

frames int

Number of audio samples for this callback. This number is always <= maxFrames, given in last reset() callback. To force this number to arbitrarily, you may override maxFramesInProcess, which will split host buffers in smaller chunks.

timeInfo TimeInfo

Timing information for the first sample (0th) of this buffer.

Warning: Using MIDI input? If your plug-in has "receivesMidi" set to true in its plugin.json, this callback is the one place where you MUST call getNextMidiMessages(). See poly-alias or simple-mono-synth examples for how.

Meta