LMMS
Loading...
Searching...
No Matches
carla-vst.cpp File Reference
#include "carla-base.cpp"
#include "carla-vst.hpp"
#include "water/files/File.h"
#include "CarlaMathUtils.hpp"
#include "CarlaVst2Utils.hpp"

Classes

class  NativePlugin
struct  NativePlugin::FixedVstEvents

Macros

#define CARLA_NATIVE_PLUGIN_VST
#define handlePtr   ((NativePlugin*)handle)
#define validObject   effect != nullptr && effect->object != nullptr
#define validPlugin   effect != nullptr && effect->object != nullptr && ((VstObject*)effect->object)->plugin != nullptr
#define vstObjectPtr   (VstObject*)effect->object
#define pluginPtr   (vstObjectPtr)->plugin

Functions

intptr_t vst_dispatcherCallback (AEffect *effect, int32_t opcode, int32_t index, intptr_t value, void *ptr, float opt)
float vst_getParameterCallback (AEffect *effect, int32_t index)
void vst_setParameterCallback (AEffect *effect, int32_t index, float value)
void vst_processCallback (AEffect *effect, float **inputs, float **outputs, int32_t sampleFrames)
void vst_processReplacingCallback (AEffect *effect, float **inputs, float **outputs, int32_t sampleFrames)
const AEffectVSTPluginMainInit (AEffect *const effect)

Variables

static uint32_t d_lastBufferSize = 0
static double d_lastSampleRate = 0.0
static const int32_t kBaseUniqueID = CCONST('C', 'r', 'l', 'a')
static const int32_t kVstMidiEventSize = static_cast<int32_t>(sizeof(VstMidiEvent))
static const int32_t kNumParameters = 100
static const bool kIsUsingUILauncher = isUsingUILauncher()

Macro Definition Documentation

◆ CARLA_NATIVE_PLUGIN_VST

#define CARLA_NATIVE_PLUGIN_VST

◆ handlePtr

#define handlePtr   ((NativePlugin*)handle)

◆ pluginPtr

#define pluginPtr   (vstObjectPtr)->plugin

◆ validObject

#define validObject   effect != nullptr && effect->object != nullptr

◆ validPlugin

#define validPlugin   effect != nullptr && effect->object != nullptr && ((VstObject*)effect->object)->plugin != nullptr

◆ vstObjectPtr

#define vstObjectPtr   (VstObject*)effect->object

Function Documentation

◆ vst_dispatcherCallback()

intptr_t vst_dispatcherCallback ( AEffect * effect,
int32_t opcode,
int32_t index,
intptr_t value,
void * ptr,
float opt )

◆ vst_getParameterCallback()

float vst_getParameterCallback ( AEffect * effect,
int32_t index )

◆ vst_processCallback()

void vst_processCallback ( AEffect * effect,
float ** inputs,
float ** outputs,
int32_t sampleFrames )

◆ vst_processReplacingCallback()

void vst_processReplacingCallback ( AEffect * effect,
float ** inputs,
float ** outputs,
int32_t sampleFrames )

◆ vst_setParameterCallback()

void vst_setParameterCallback ( AEffect * effect,
int32_t index,
float value )

◆ VSTPluginMainInit()

const AEffect * VSTPluginMainInit ( AEffect *const effect)

Variable Documentation

◆ d_lastBufferSize

uint32_t d_lastBufferSize = 0
static

◆ d_lastSampleRate

double d_lastSampleRate = 0.0
static

◆ kBaseUniqueID

const int32_t kBaseUniqueID = CCONST('C', 'r', 'l', 'a')
static

◆ kIsUsingUILauncher

const bool kIsUsingUILauncher = isUsingUILauncher()
static

◆ kNumParameters

const int32_t kNumParameters = 100
static

◆ kVstMidiEventSize

const int32_t kVstMidiEventSize = static_cast<int32_t>(sizeof(VstMidiEvent))
static