|
@@ -22,7 +22,9 @@ |
|
|
|
|
|
|
|
|
#include "carla_backend.hpp" |
|
|
#include "carla_backend.hpp" |
|
|
|
|
|
|
|
|
CARLA_BACKEND_USE_NAMESPACE |
|
|
|
|
|
|
|
|
// TODO - create struct for internal plugin info |
|
|
|
|
|
// TODO - dont strdup() on const-char* returns |
|
|
|
|
|
// TODO - set_option caching values |
|
|
|
|
|
|
|
|
/*! |
|
|
/*! |
|
|
* @defgroup CarlaBackendStandalone Carla Backend Standalone |
|
|
* @defgroup CarlaBackendStandalone Carla Backend Standalone |
|
@@ -33,8 +35,8 @@ CARLA_BACKEND_USE_NAMESPACE |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
struct PluginInfo { |
|
|
struct PluginInfo { |
|
|
PluginType type; |
|
|
|
|
|
PluginCategory category; |
|
|
|
|
|
|
|
|
CarlaBackend::PluginType type; |
|
|
|
|
|
CarlaBackend::PluginCategory category; |
|
|
unsigned int hints; |
|
|
unsigned int hints; |
|
|
const char* binary; |
|
|
const char* binary; |
|
|
const char* name; |
|
|
const char* name; |
|
@@ -44,8 +46,8 @@ struct PluginInfo { |
|
|
long uniqueId; |
|
|
long uniqueId; |
|
|
|
|
|
|
|
|
PluginInfo() |
|
|
PluginInfo() |
|
|
: type(PLUGIN_NONE), |
|
|
|
|
|
category(PLUGIN_CATEGORY_NONE), |
|
|
|
|
|
|
|
|
: type(CarlaBackend::PLUGIN_NONE), |
|
|
|
|
|
category(CarlaBackend::PLUGIN_CATEGORY_NONE), |
|
|
hints(0x0), |
|
|
hints(0x0), |
|
|
binary(nullptr), |
|
|
binary(nullptr), |
|
|
name(nullptr), |
|
|
name(nullptr), |
|
@@ -89,11 +91,11 @@ struct ScalePointInfo { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
struct GuiInfo { |
|
|
struct GuiInfo { |
|
|
GuiType type; |
|
|
|
|
|
|
|
|
CarlaBackend::GuiType type; |
|
|
bool resizable; |
|
|
bool resizable; |
|
|
|
|
|
|
|
|
GuiInfo() |
|
|
GuiInfo() |
|
|
: type(GUI_NONE), |
|
|
|
|
|
|
|
|
: type(CarlaBackend::GUI_NONE), |
|
|
resizable(false) {} |
|
|
resizable(false) {} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@@ -109,7 +111,7 @@ CARLA_EXPORT bool engine_init(const char* driver_name, const char* client_name); |
|
|
CARLA_EXPORT bool engine_close(); |
|
|
CARLA_EXPORT bool engine_close(); |
|
|
CARLA_EXPORT bool is_engine_running(); |
|
|
CARLA_EXPORT bool is_engine_running(); |
|
|
|
|
|
|
|
|
CARLA_EXPORT short add_plugin(BinaryType btype, PluginType ptype, const char* filename, const char* name, const char* label, void* extra_stuff); |
|
|
|
|
|
|
|
|
CARLA_EXPORT short add_plugin(CarlaBackend::BinaryType btype, CarlaBackend::PluginType ptype, const char* filename, const char* name, const char* label, void* extra_stuff); |
|
|
CARLA_EXPORT bool remove_plugin(unsigned short plugin_id); |
|
|
CARLA_EXPORT bool remove_plugin(unsigned short plugin_id); |
|
|
|
|
|
|
|
|
CARLA_EXPORT const PluginInfo* get_plugin_info(unsigned short plugin_id); |
|
|
CARLA_EXPORT const PluginInfo* get_plugin_info(unsigned short plugin_id); |
|
@@ -120,10 +122,10 @@ CARLA_EXPORT const ParameterInfo* get_parameter_info(unsigned short plugin_id, u |
|
|
CARLA_EXPORT const ScalePointInfo* get_parameter_scalepoint_info(unsigned short plugin_id, uint32_t parameter_id, uint32_t scalepoint_id); |
|
|
CARLA_EXPORT const ScalePointInfo* get_parameter_scalepoint_info(unsigned short plugin_id, uint32_t parameter_id, uint32_t scalepoint_id); |
|
|
CARLA_EXPORT const GuiInfo* get_gui_info(unsigned short plugin_id); |
|
|
CARLA_EXPORT const GuiInfo* get_gui_info(unsigned short plugin_id); |
|
|
|
|
|
|
|
|
CARLA_EXPORT const ParameterData* get_parameter_data(unsigned short plugin_id, uint32_t parameter_id); |
|
|
|
|
|
CARLA_EXPORT const ParameterRanges* get_parameter_ranges(unsigned short plugin_id, uint32_t parameter_id); |
|
|
|
|
|
CARLA_EXPORT const MidiProgramData* get_midi_program_data(unsigned short plugin_id, uint32_t midi_program_id); |
|
|
|
|
|
CARLA_EXPORT const CustomData* get_custom_data(unsigned short plugin_id, uint32_t custom_data_id); |
|
|
|
|
|
|
|
|
CARLA_EXPORT const CarlaBackend::ParameterData* get_parameter_data(unsigned short plugin_id, uint32_t parameter_id); |
|
|
|
|
|
CARLA_EXPORT const CarlaBackend::ParameterRanges* get_parameter_ranges(unsigned short plugin_id, uint32_t parameter_id); |
|
|
|
|
|
CARLA_EXPORT const CarlaBackend::MidiProgramData* get_midi_program_data(unsigned short plugin_id, uint32_t midi_program_id); |
|
|
|
|
|
CARLA_EXPORT const CarlaBackend::CustomData* get_custom_data(unsigned short plugin_id, uint32_t custom_data_id); |
|
|
CARLA_EXPORT const char* get_chunk_data(unsigned short plugin_id); |
|
|
CARLA_EXPORT const char* get_chunk_data(unsigned short plugin_id); |
|
|
|
|
|
|
|
|
CARLA_EXPORT uint32_t get_parameter_count(unsigned short plugin_id); |
|
|
CARLA_EXPORT uint32_t get_parameter_count(unsigned short plugin_id); |
|
@@ -157,7 +159,7 @@ CARLA_EXPORT void set_parameter_midi_cc(unsigned short plugin_id, uint32_t param |
|
|
CARLA_EXPORT void set_program(unsigned short plugin_id, uint32_t program_id); |
|
|
CARLA_EXPORT void set_program(unsigned short plugin_id, uint32_t program_id); |
|
|
CARLA_EXPORT void set_midi_program(unsigned short plugin_id, uint32_t midi_program_id); |
|
|
CARLA_EXPORT void set_midi_program(unsigned short plugin_id, uint32_t midi_program_id); |
|
|
|
|
|
|
|
|
CARLA_EXPORT void set_custom_data(unsigned short plugin_id, CustomDataType dtype, const char* key, const char* value); |
|
|
|
|
|
|
|
|
CARLA_EXPORT void set_custom_data(unsigned short plugin_id, CarlaBackend::CustomDataType dtype, const char* key, const char* value); |
|
|
CARLA_EXPORT void set_chunk_data(unsigned short plugin_id, const char* chunk_data); |
|
|
CARLA_EXPORT void set_chunk_data(unsigned short plugin_id, const char* chunk_data); |
|
|
CARLA_EXPORT void set_gui_container(unsigned short plugin_id, uintptr_t gui_addr); |
|
|
CARLA_EXPORT void set_gui_container(unsigned short plugin_id, uintptr_t gui_addr); |
|
|
|
|
|
|
|
@@ -173,8 +175,8 @@ CARLA_EXPORT double get_sample_rate(); |
|
|
CARLA_EXPORT const char* get_last_error(); |
|
|
CARLA_EXPORT const char* get_last_error(); |
|
|
CARLA_EXPORT const char* get_host_osc_url(); |
|
|
CARLA_EXPORT const char* get_host_osc_url(); |
|
|
|
|
|
|
|
|
CARLA_EXPORT void set_callback_function(CallbackFunc func); |
|
|
|
|
|
CARLA_EXPORT void set_option(OptionsType option, int value, const char* value_str); |
|
|
|
|
|
|
|
|
CARLA_EXPORT void set_callback_function(CarlaBackend::CallbackFunc func); |
|
|
|
|
|
CARLA_EXPORT void set_option(CarlaBackend::OptionsType option, int value, const char* value_str); |
|
|
|
|
|
|
|
|
CARLA_EXPORT void nsm_announce(const char* url, int pid); |
|
|
CARLA_EXPORT void nsm_announce(const char* url, int pid); |
|
|
CARLA_EXPORT void nsm_reply_open(); |
|
|
CARLA_EXPORT void nsm_reply_open(); |
|
|