IPluginHost

Undocumented in source.

Members

Functions

beginAudioProcessing
void beginAudioProcessing()

Switch on the plugin. Call it before processing.

closeUI
void closeUI()

Closes the editor.

endAudioProcessing
void endAudioProcessing()

Switch off the plugin. Call it after processing.

getCurrentProgram
int getCurrentProgram()

Gets current "program" index. Note: not all presets are exposed to the host. In many plug-ins they aren't.

getEffectName
const(char)[] getEffectName()

ditto Lifetime of return value is same as IPluginHost.

getLatencySamples
int getLatencySamples()

Get current plug-in latency in samples. Because of VST2 limitations, this number of only valid between a beginAudioProcessing and endAudioProcessing call, and won't move while processing.

getParameter
float getParameter(int paramIndex)
getParameterCount
int getParameterCount()
getParameterName
const(char)[] getParameterName(int paramIndex)
getProductString
const(char)[] getProductString()

Get plugin information. Lifetime of return value is same as IPluginHost.

getTailSizeInSeconds
double getTailSizeInSeconds()

Get tail size in seconds. Precise semantics TBD.

getUISize
int[2] getUISize()

Gets the UI size.

getVendorString
const(char)[] getVendorString()

ditto Lifetime of return value is same as IPluginHost.

loadPreset
void loadPreset(int presetIndex)

Loads a preset.

openUI
void openUI(void* windowHandle)

Opens the editor window. On Windows, pass a HWND On Mac, a NSView

processAudioFloat
void processAudioFloat(float** inputs, float** ouputs, int samples)

Process some audio. setSampleRate and setMaxBufferSize must be called before use. samples must <= the maximum buffer size asked in

restoreState
bool restoreState(const(ubyte)[] chunk)

Restore state of the plugin, saved with saveState.

saveState
const(ubyte)[] saveState()

Serialize state of the plugin, to restore with restoreState.

setIO
bool setIO(int numInputs, int numOutputs)

Sets I/O arrangement (simple right now).

setMaxBufferSize
void setMaxBufferSize(int samples)

Sets the maximum buffer size

setParameter
void setParameter(int paramIndex, float normalizedValue)

Sets a parameter's value.

setSampleRate
void setSampleRate(float sampleRate)

Sets the desired sampleRate

Meta