|
|
@@ -23,8 +23,7 @@ |
|
|
|
#include "carla_backend.hpp" |
|
|
|
|
|
|
|
// TODO - create struct for internal plugin info |
|
|
|
// TODO - dont strdup() on const-char* returns |
|
|
|
// TODO - set_option caching values |
|
|
|
// TODO - dont strdup() on const-char* returns, use static char[STR_MAX] |
|
|
|
|
|
|
|
/*! |
|
|
|
* @defgroup CarlaBackendStandalone Carla Backend Standalone |
|
|
@@ -105,69 +104,69 @@ CARLA_EXPORT unsigned int get_engine_driver_count(); |
|
|
|
CARLA_EXPORT const char* get_engine_driver_name(unsigned int index); |
|
|
|
|
|
|
|
CARLA_EXPORT unsigned int get_internal_plugin_count(); |
|
|
|
CARLA_EXPORT const PluginInfo* get_internal_plugin_info(unsigned int plugin_id); |
|
|
|
CARLA_EXPORT const PluginInfo* get_internal_plugin_info(unsigned int pluginId); |
|
|
|
|
|
|
|
CARLA_EXPORT bool engine_init(const char* driver_name, const char* client_name); |
|
|
|
CARLA_EXPORT bool engine_init(const char* driverName, const char* clientName); |
|
|
|
CARLA_EXPORT bool engine_close(); |
|
|
|
CARLA_EXPORT bool is_engine_running(); |
|
|
|
|
|
|
|
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 const PluginInfo* get_plugin_info(unsigned short plugin_id); |
|
|
|
CARLA_EXPORT const PortCountInfo* get_audio_port_count_info(unsigned short plugin_id); |
|
|
|
CARLA_EXPORT const PortCountInfo* get_midi_port_count_info(unsigned short plugin_id); |
|
|
|
CARLA_EXPORT const PortCountInfo* get_parameter_count_info(unsigned short plugin_id); |
|
|
|
CARLA_EXPORT const ParameterInfo* get_parameter_info(unsigned short plugin_id, uint32_t parameter_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 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 uint32_t get_parameter_count(unsigned short plugin_id); |
|
|
|
CARLA_EXPORT uint32_t get_program_count(unsigned short plugin_id); |
|
|
|
CARLA_EXPORT uint32_t get_midi_program_count(unsigned short plugin_id); |
|
|
|
CARLA_EXPORT uint32_t get_custom_data_count(unsigned short plugin_id); |
|
|
|
|
|
|
|
CARLA_EXPORT const char* get_parameter_text(unsigned short plugin_id, uint32_t parameter_id); |
|
|
|
CARLA_EXPORT const char* get_program_name(unsigned short plugin_id, uint32_t program_id); |
|
|
|
CARLA_EXPORT const char* get_midi_program_name(unsigned short plugin_id, uint32_t midi_program_id); |
|
|
|
CARLA_EXPORT const char* get_real_plugin_name(unsigned short plugin_id); |
|
|
|
|
|
|
|
CARLA_EXPORT int32_t get_current_program_index(unsigned short plugin_id); |
|
|
|
CARLA_EXPORT int32_t get_current_midi_program_index(unsigned short plugin_id); |
|
|
|
|
|
|
|
CARLA_EXPORT double get_default_parameter_value(unsigned short plugin_id, uint32_t parameter_id); |
|
|
|
CARLA_EXPORT double get_current_parameter_value(unsigned short plugin_id, uint32_t parameter_id); |
|
|
|
|
|
|
|
CARLA_EXPORT double get_input_peak_value(unsigned short plugin_id, unsigned short port_id); |
|
|
|
CARLA_EXPORT double get_output_peak_value(unsigned short plugin_id, unsigned short port_id); |
|
|
|
|
|
|
|
CARLA_EXPORT void set_active(unsigned short plugin_id, bool onoff); |
|
|
|
CARLA_EXPORT void set_drywet(unsigned short plugin_id, double value); |
|
|
|
CARLA_EXPORT void set_volume(unsigned short plugin_id, double value); |
|
|
|
CARLA_EXPORT void set_balance_left(unsigned short plugin_id, double value); |
|
|
|
CARLA_EXPORT void set_balance_right(unsigned short plugin_id, double value); |
|
|
|
|
|
|
|
CARLA_EXPORT void set_parameter_value(unsigned short plugin_id, uint32_t parameter_id, double value); |
|
|
|
CARLA_EXPORT void set_parameter_midi_channel(unsigned short plugin_id, uint32_t parameter_id, uint8_t channel); |
|
|
|
CARLA_EXPORT void set_parameter_midi_cc(unsigned short plugin_id, uint32_t parameter_id, int16_t cc); |
|
|
|
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_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_gui_container(unsigned short plugin_id, uintptr_t gui_addr); |
|
|
|
|
|
|
|
CARLA_EXPORT void show_gui(unsigned short plugin_id, bool yesno); |
|
|
|
CARLA_EXPORT short add_plugin(CarlaBackend::BinaryType btype, CarlaBackend::PluginType ptype, const char* filename, const char* name, const char* label, void* extraStuff); |
|
|
|
CARLA_EXPORT bool remove_plugin(unsigned short pluginId); |
|
|
|
|
|
|
|
CARLA_EXPORT const PluginInfo* get_plugin_info(unsigned short pluginId); |
|
|
|
CARLA_EXPORT const PortCountInfo* get_audio_port_count_info(unsigned short pluginId); |
|
|
|
CARLA_EXPORT const PortCountInfo* get_midi_port_count_info(unsigned short pluginId); |
|
|
|
CARLA_EXPORT const PortCountInfo* get_parameter_count_info(unsigned short pluginId); |
|
|
|
CARLA_EXPORT const ParameterInfo* get_parameter_info(unsigned short plugin_id, uint32_t parameterId); |
|
|
|
CARLA_EXPORT const ScalePointInfo* get_parameter_scalepoint_info(unsigned short pluginId, uint32_t parameterId, uint32_t scalePointId); |
|
|
|
CARLA_EXPORT const GuiInfo* get_gui_info(unsigned short pluginId); |
|
|
|
|
|
|
|
CARLA_EXPORT const CarlaBackend::ParameterData* get_parameter_data(unsigned short pluginId, uint32_t parameterId); |
|
|
|
CARLA_EXPORT const CarlaBackend::ParameterRanges* get_parameter_ranges(unsigned short pluginId, uint32_t parameterId); |
|
|
|
CARLA_EXPORT const CarlaBackend::MidiProgramData* get_midi_program_data(unsigned short pluginId, uint32_t midiProgramId); |
|
|
|
CARLA_EXPORT const CarlaBackend::CustomData* get_custom_data(unsigned short pluginId, uint32_t customDataId); |
|
|
|
CARLA_EXPORT const char* get_chunk_data(unsigned short pluginId); |
|
|
|
|
|
|
|
CARLA_EXPORT uint32_t get_parameter_count(unsigned short pluginId); |
|
|
|
CARLA_EXPORT uint32_t get_program_count(unsigned short pluginId); |
|
|
|
CARLA_EXPORT uint32_t get_midi_program_count(unsigned short pluginId); |
|
|
|
CARLA_EXPORT uint32_t get_custom_data_count(unsigned short pluginId); |
|
|
|
|
|
|
|
CARLA_EXPORT const char* get_parameter_text(unsigned short pluginId, uint32_t parameterId); |
|
|
|
CARLA_EXPORT const char* get_program_name(unsigned short pluginId, uint32_t programId); |
|
|
|
CARLA_EXPORT const char* get_midi_program_name(unsigned short pluginId, uint32_t midiProgramId); |
|
|
|
CARLA_EXPORT const char* get_real_plugin_name(unsigned short pluginId); |
|
|
|
|
|
|
|
CARLA_EXPORT int32_t get_current_program_index(unsigned short pluginId); |
|
|
|
CARLA_EXPORT int32_t get_current_midi_program_index(unsigned short pluginId); |
|
|
|
|
|
|
|
CARLA_EXPORT double get_default_parameter_value(unsigned short pluginId, uint32_t parameterId); |
|
|
|
CARLA_EXPORT double get_current_parameter_value(unsigned short pluginId, uint32_t parameterId); |
|
|
|
|
|
|
|
CARLA_EXPORT double get_input_peak_value(unsigned short pluginId, unsigned short portId); |
|
|
|
CARLA_EXPORT double get_output_peak_value(unsigned short pluginId, unsigned short portId); |
|
|
|
|
|
|
|
CARLA_EXPORT void set_active(unsigned short pluginId, bool onOff); |
|
|
|
CARLA_EXPORT void set_drywet(unsigned short pluginId, double value); |
|
|
|
CARLA_EXPORT void set_volume(unsigned short pluginId, double value); |
|
|
|
CARLA_EXPORT void set_balance_left(unsigned short pluginId, double value); |
|
|
|
CARLA_EXPORT void set_balance_right(unsigned short pluginId, double value); |
|
|
|
|
|
|
|
CARLA_EXPORT void set_parameter_value(unsigned short pluginId, uint32_t parameterId, double value); |
|
|
|
CARLA_EXPORT void set_parameter_midi_channel(unsigned short pluginId, uint32_t parameterId, uint8_t channel); |
|
|
|
CARLA_EXPORT void set_parameter_midi_cc(unsigned short pluginId, uint32_t parameterId, int16_t cc); |
|
|
|
CARLA_EXPORT void set_program(unsigned short pluginId, uint32_t programId); |
|
|
|
CARLA_EXPORT void set_midi_program(unsigned short pluginId, uint32_t midiProgramId); |
|
|
|
|
|
|
|
CARLA_EXPORT void set_custom_data(unsigned short pluginId, const char* type, const char* key, const char* value); |
|
|
|
CARLA_EXPORT void set_chunk_data(unsigned short pluginId, const char* chunkData); |
|
|
|
CARLA_EXPORT void set_gui_container(unsigned short pluginId, uintptr_t guiAddr); |
|
|
|
|
|
|
|
CARLA_EXPORT void show_gui(unsigned short pluginId, bool yesNo); |
|
|
|
CARLA_EXPORT void idle_guis(); |
|
|
|
|
|
|
|
CARLA_EXPORT void send_midi_note(unsigned short plugin_id, uint8_t channel, uint8_t note, uint8_t velocity); |
|
|
|
CARLA_EXPORT void prepare_for_save(unsigned short plugin_id); |
|
|
|
CARLA_EXPORT void send_midi_note(unsigned short pluginId, uint8_t channel, uint8_t note, uint8_t velocity); |
|
|
|
CARLA_EXPORT void prepare_for_save(unsigned short pluginId); |
|
|
|
|
|
|
|
CARLA_EXPORT uint32_t get_buffer_size(); |
|
|
|
CARLA_EXPORT double get_sample_rate(); |
|
|
@@ -176,7 +175,7 @@ CARLA_EXPORT const char* get_last_error(); |
|
|
|
CARLA_EXPORT const char* get_host_osc_url(); |
|
|
|
|
|
|
|
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 set_option(CarlaBackend::OptionsType option, int value, const char* valueStr); |
|
|
|
|
|
|
|
CARLA_EXPORT void nsm_announce(const char* url, int pid); |
|
|
|
CARLA_EXPORT void nsm_reply_open(); |
|
|
|