static inline const char* getPluginTypeAsString(const PluginType& type) { carla_debug("CarlaBackend::getPluginTypeAsString(%s)", PluginType2Str(type)); switch (type) { case PLUGIN_NONE: return "NONE"; case PLUGIN_INTERNAL: return "INTERNAL"; case PLUGIN_LADSPA: return "LADSPA"; case PLUGIN_DSSI: return "DSSI"; case PLUGIN_LV2: return "LV2"; case PLUGIN_VST: return "VST"; case PLUGIN_VST3: return "VST3"; case PLUGIN_GIG: return "GIG"; case PLUGIN_SF2: return "SF2"; case PLUGIN_SFZ: return "SFZ"; } carla_stderr("CarlaBackend::getPluginTypeAsString(%i) - invalid type", type); return "NONE"; }
static void test_CarlaBackendUtils() noexcept { CARLA_BACKEND_USE_NAMESPACE carla_stdout(PluginOption2Str(PLUGIN_OPTION_FIXED_BUFFERS)); carla_stdout(BinaryType2Str(BINARY_NONE)); carla_stdout(PluginType2Str(PLUGIN_NONE)); carla_stdout(PluginCategory2Str(PLUGIN_CATEGORY_NONE)); carla_stdout(ParameterType2Str(PARAMETER_UNKNOWN)); carla_stdout(InternalParameterIndex2Str(PARAMETER_NULL)); carla_stdout(EngineCallbackOpcode2Str(ENGINE_CALLBACK_DEBUG)); carla_stdout(EngineOption2Str(ENGINE_OPTION_DEBUG)); carla_stdout(EngineProcessMode2Str(ENGINE_PROCESS_MODE_SINGLE_CLIENT)); carla_stdout(EngineTransportMode2Str(ENGINE_TRANSPORT_MODE_INTERNAL)); carla_stdout(FileCallbackOpcode2Str(FILE_CALLBACK_DEBUG)); carla_stdout(getPluginTypeAsString(PLUGIN_INTERNAL)); carla_stdout(PatchbayIcon2Str(PATCHBAY_ICON_APPLICATION)); getPluginTypeFromString("none"); getPluginCategoryFromName("cat"); }