vst3 indentation/alignment

This commit is contained in:
Paolo Marrone 2024-07-04 09:48:34 +02:00
parent 67cddf552b
commit ebf2a2052c
2 changed files with 262 additions and 262 deletions

View File

@ -22,17 +22,17 @@
#include <stdint.h>
typedef struct {
void * handle;
const char * format;
const char * (*get_bindir)(void *handle);
const char * (*get_datadir)(void *handle);
void *handle;
const char *format;
const char *(*get_bindir)(void *handle);
const char *(*get_datadir)(void *handle);
} plugin_callbacks;
typedef struct {
void * handle;
const char * format;
const char * (*get_bindir)(void *handle);
const char * (*get_datadir)(void *handle);
void *handle;
const char *format;
const char *(*get_bindir)(void *handle);
const char *(*get_datadir)(void *handle);
void (*set_parameter)(void *handle, size_t index, float value);
} plugin_ui_callbacks;
@ -193,21 +193,21 @@ static double parameterAdjust(int i, double v) {
}
typedef struct pluginInstance {
Steinberg_Vst_IComponentVtbl * vtblIComponent;
Steinberg_Vst_IAudioProcessorVtbl * vtblIAudioProcessor;
Steinberg_Vst_IProcessContextRequirementsVtbl * vtblIProcessContextRequirements;
Steinberg_Vst_IComponentVtbl *vtblIComponent;
Steinberg_Vst_IAudioProcessorVtbl *vtblIAudioProcessor;
Steinberg_Vst_IProcessContextRequirementsVtbl *vtblIProcessContextRequirements;
Steinberg_uint32 refs;
Steinberg_FUnknown * context;
Steinberg_FUnknown *context;
plugin p;
float sampleRate;
#if DATA_PRODUCT_PARAMETERS_N > 0
float parameters[DATA_PRODUCT_PARAMETERS_N];
#endif
#if DATA_PRODUCT_CHANNELS_AUDIO_INPUT_N > 0
const float * inputs[DATA_PRODUCT_CHANNELS_AUDIO_INPUT_N];
const float *inputs[DATA_PRODUCT_CHANNELS_AUDIO_INPUT_N];
#endif
#if DATA_PRODUCT_CHANNELS_AUDIO_OUTPUT_N > 0
float * outputs[DATA_PRODUCT_CHANNELS_AUDIO_OUTPUT_N];
float *outputs[DATA_PRODUCT_CHANNELS_AUDIO_OUTPUT_N];
#endif
#if DATA_PRODUCT_BUSES_AUDIO_INPUT_N > 0
char inputsActive[DATA_PRODUCT_BUSES_AUDIO_INPUT_N];
@ -221,7 +221,7 @@ typedef struct pluginInstance {
#if DATA_PRODUCT_BUSES_MIDI_OUTPUT_N > 0
char midiOutputsActive[DATA_PRODUCT_BUSES_MIDI_OUTPUT_N];
#endif
void * mem;
void *mem;
} pluginInstance;
static Steinberg_Vst_IComponentVtbl pluginVtblIComponent;
@ -900,19 +900,19 @@ static Steinberg_Vst_IProcessContextRequirementsVtbl pluginVtblIProcessContextRe
typedef struct plugView plugView;
typedef struct controller {
Steinberg_Vst_IEditControllerVtbl * vtblIEditController;
Steinberg_Vst_IMidiMappingVtbl * vtblIMidiMapping;
Steinberg_Vst_IEditControllerVtbl *vtblIEditController;
Steinberg_Vst_IMidiMappingVtbl *vtblIMidiMapping;
#ifdef DATA_UI
//Steinberg_Vst_IConnectionPointVtbl * vtblIConnectionPoint;
#endif
Steinberg_uint32 refs;
Steinberg_FUnknown * context;
Steinberg_FUnknown *context;
#if DATA_PRODUCT_PARAMETERS_N + DATA_PRODUCT_BUSES_MIDI_INPUT_N > 0
double parameters[DATA_PRODUCT_PARAMETERS_N + 3 * DATA_PRODUCT_BUSES_MIDI_INPUT_N];
#endif
struct Steinberg_Vst_IComponentHandler * componentHandler;
struct Steinberg_Vst_IComponentHandler *componentHandler;
#ifdef DATA_UI
plugView ** views;
plugView **views;
size_t viewsCount;
#endif
} controller;
@ -926,9 +926,9 @@ static Steinberg_Vst_IEditControllerVtbl controllerVtblIEditController;
# include <X11/Xlib.h>
typedef struct {
Steinberg_ITimerHandlerVtbl * vtblITimerHandler;
Steinberg_ITimerHandlerVtbl *vtblITimerHandler;
Steinberg_uint32 refs;
void * data;
void *data;
void (*cb)(void *data);
} timerHandler;
@ -998,15 +998,15 @@ static Steinberg_ITimerHandlerVtbl timerHandlerVtblITimerHandler = {
# endif
typedef struct plugView {
Steinberg_IPlugViewVtbl * vtblIPlugView;
Steinberg_IPlugViewVtbl *vtblIPlugView;
Steinberg_uint32 refs;
Steinberg_IPlugFrame * frame;
plugin_ui * ui;
controller * ctrl;
Steinberg_IPlugFrame *frame;
plugin_ui *ui;
controller *ctrl;
# ifdef __linux__
Steinberg_IRunLoop * runLoop;
Steinberg_IRunLoop *runLoop;
timerHandler timer;
Display * display;
Display *display;
# elif defined(__APPLE__)
CFRunLoopTimerRef timer;
# elif defined(_WIN32) || defined(__CYGWIN__)
@ -1455,7 +1455,7 @@ static Steinberg_tresult controllerInitialize(void* thisInterface, struct Steinb
#endif
#if DATA_PRODUCT_BUSES_MIDI_INPUT_N > 0
for (int i = DATA_PRODUCT_PARAMETERS_N; i < DATA_PRODUCT_PARAMETERS_N + 3 * DATA_PRODUCT_BUSES_MIDI_INPUT_N; i += 3) {
c->parameters[i] = 0.0;
c->parameters[i ] = 0.0;
c->parameters[i + 1] = 0.5;
c->parameters[i + 2] = 0.0;
}