IPluginHost

Undocumented in source.

Members

Functions

beginAudioProcessing
void beginAudioProcessing()

Switch on the plugin. Call it before processing.

close
void close()

Free all resources associated with the plugin host.

closeUI
void closeUI()

Closes the editor.

endAudioProcessing
void endAudioProcessing()

Switch off the plugin. Call it after processing.

getCurrentProgram
int getCurrentProgram()

Gets current "program" index.

getEffectName
string getEffectName()

Get plugin information

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
string getProductString()

Get plugin information

getTailSizeInSeconds
double getTailSizeInSeconds()

Get tail size in seconds. Precise semantics TBD.

getUISize
int[2] getUISize()

Gets the UI size.

getVendorString
string getVendorString()

Get plugin information

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
void restoreState(ubyte[] chunk)

Restore state of the plugin.

saveState
ubyte[] saveState()

Serialize state of the plugin.

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