Signed-off-by: falkTX <falktx@falktx.com>tags/v2.1-rc1
| @@ -133,11 +133,11 @@ enum CarlaLv2URIDs { | |||||
| kUridTimeTicksPerBeat, | kUridTimeTicksPerBeat, | ||||
| kUridMidiEvent, | kUridMidiEvent, | ||||
| kUridParamSampleRate, | kUridParamSampleRate, | ||||
| kUridScaleFactor, | |||||
| kUridWindowTitle, | kUridWindowTitle, | ||||
| kUridCarlaAtomWorkerIn, | kUridCarlaAtomWorkerIn, | ||||
| kUridCarlaAtomWorkerResp, | kUridCarlaAtomWorkerResp, | ||||
| kUridCarlaTransientWindowId, | kUridCarlaTransientWindowId, | ||||
| kUridCarlaUiScale, | |||||
| kUridCount | kUridCount | ||||
| }; | }; | ||||
| @@ -316,7 +316,7 @@ struct CarlaPluginLV2Options { | |||||
| SequenceSize, | SequenceSize, | ||||
| SampleRate, | SampleRate, | ||||
| TransientWinId, | TransientWinId, | ||||
| UiScale, | |||||
| ScaleFactor, | |||||
| WindowTitle, | WindowTitle, | ||||
| Null, | Null, | ||||
| Count | Count | ||||
| @@ -374,13 +374,13 @@ struct CarlaPluginLV2Options { | |||||
| optSequenceSize.type = kUridAtomInt; | optSequenceSize.type = kUridAtomInt; | ||||
| optSequenceSize.value = &sequenceSize; | optSequenceSize.value = &sequenceSize; | ||||
| LV2_Options_Option& optUiScale(opts[UiScale]); | |||||
| optUiScale.context = LV2_OPTIONS_INSTANCE; | |||||
| optUiScale.subject = 0; | |||||
| optUiScale.key = kUridCarlaUiScale; | |||||
| optUiScale.size = sizeof(float); | |||||
| optUiScale.type = kUridAtomFloat; | |||||
| optUiScale.value = &uiScale; | |||||
| LV2_Options_Option& optScaleFactor(opts[ScaleFactor]); | |||||
| optScaleFactor.context = LV2_OPTIONS_INSTANCE; | |||||
| optScaleFactor.subject = 0; | |||||
| optScaleFactor.key = kUridScaleFactor; | |||||
| optScaleFactor.size = sizeof(float); | |||||
| optScaleFactor.type = kUridAtomFloat; | |||||
| optScaleFactor.value = &uiScale; | |||||
| LV2_Options_Option& optSampleRate(opts[SampleRate]); | LV2_Options_Option& optSampleRate(opts[SampleRate]); | ||||
| optSampleRate.context = LV2_OPTIONS_INSTANCE; | optSampleRate.context = LV2_OPTIONS_INSTANCE; | ||||
| @@ -6610,6 +6610,8 @@ private: | |||||
| return kUridMidiEvent; | return kUridMidiEvent; | ||||
| if (std::strcmp(uri, LV2_PARAMETERS__sampleRate) == 0) | if (std::strcmp(uri, LV2_PARAMETERS__sampleRate) == 0) | ||||
| return kUridParamSampleRate; | return kUridParamSampleRate; | ||||
| if (std::strcmp(uri, LV2_UI__scaleFactor) == 0) | |||||
| return kUridScaleFactor; | |||||
| if (std::strcmp(uri, LV2_UI__windowTitle) == 0) | if (std::strcmp(uri, LV2_UI__windowTitle) == 0) | ||||
| return kUridWindowTitle; | return kUridWindowTitle; | ||||
| @@ -6620,8 +6622,6 @@ private: | |||||
| return kUridCarlaAtomWorkerResp; | return kUridCarlaAtomWorkerResp; | ||||
| if (std::strcmp(uri, LV2_KXSTUDIO_PROPERTIES__TransientWindowId) == 0) | if (std::strcmp(uri, LV2_KXSTUDIO_PROPERTIES__TransientWindowId) == 0) | ||||
| return kUridCarlaTransientWindowId; | return kUridCarlaTransientWindowId; | ||||
| if (std::strcmp(uri, "urn:carla:scale") == 0) | |||||
| return kUridCarlaUiScale; | |||||
| // Custom plugin types | // Custom plugin types | ||||
| return ((CarlaPluginLV2*)handle)->getCustomURID(uri); | return ((CarlaPluginLV2*)handle)->getCustomURID(uri); | ||||
| @@ -6740,6 +6740,8 @@ private: | |||||
| return LV2_MIDI__MidiEvent; | return LV2_MIDI__MidiEvent; | ||||
| case kUridParamSampleRate: | case kUridParamSampleRate: | ||||
| return LV2_PARAMETERS__sampleRate; | return LV2_PARAMETERS__sampleRate; | ||||
| case kUridScaleFactor: | |||||
| return LV2_UI__scaleFactor; | |||||
| case kUridWindowTitle: | case kUridWindowTitle: | ||||
| return LV2_UI__windowTitle; | return LV2_UI__windowTitle; | ||||
| @@ -6750,8 +6752,6 @@ private: | |||||
| return URI_CARLA_ATOM_WORKER_RESP; | return URI_CARLA_ATOM_WORKER_RESP; | ||||
| case kUridCarlaTransientWindowId: | case kUridCarlaTransientWindowId: | ||||
| return LV2_KXSTUDIO_PROPERTIES__TransientWindowId; | return LV2_KXSTUDIO_PROPERTIES__TransientWindowId; | ||||
| case kUridCarlaUiScale: | |||||
| return "urn:carla:scale"; | |||||
| } | } | ||||
| // Custom plugin types | // Custom plugin types | ||||
| @@ -93,11 +93,11 @@ enum CarlaLv2URIDs { | |||||
| kUridTimeTicksPerBeat, | kUridTimeTicksPerBeat, | ||||
| kUridMidiEvent, | kUridMidiEvent, | ||||
| kUridParamSampleRate, | kUridParamSampleRate, | ||||
| kUridScaleFactor, | |||||
| kUridWindowTitle, | kUridWindowTitle, | ||||
| kUridCarlaAtomWorkerIn, | kUridCarlaAtomWorkerIn, | ||||
| kUridCarlaAtomWorkerResp, | kUridCarlaAtomWorkerResp, | ||||
| kUridCarlaTransientWindowId, | kUridCarlaTransientWindowId, | ||||
| kUridCarlaUiScale, | |||||
| kUridCount | kUridCount | ||||
| }; | }; | ||||
| @@ -131,7 +131,7 @@ struct Lv2PluginOptions { | |||||
| enum OptIndex { | enum OptIndex { | ||||
| SampleRate, | SampleRate, | ||||
| TransientWinId, | TransientWinId, | ||||
| UiScale, | |||||
| ScaleFactor, | |||||
| WindowTitle, | WindowTitle, | ||||
| Null, | Null, | ||||
| Count | Count | ||||
| @@ -155,13 +155,13 @@ struct Lv2PluginOptions { | |||||
| optSampleRate.type = kUridAtomFloat; | optSampleRate.type = kUridAtomFloat; | ||||
| optSampleRate.value = &sampleRate; | optSampleRate.value = &sampleRate; | ||||
| LV2_Options_Option& optUiScale(opts[UiScale]); | |||||
| optUiScale.context = LV2_OPTIONS_INSTANCE; | |||||
| optUiScale.subject = 0; | |||||
| optUiScale.key = kUridParamSampleRate; | |||||
| optUiScale.size = sizeof(float); | |||||
| optUiScale.type = kUridCarlaUiScale; | |||||
| optUiScale.value = &uiScale; | |||||
| LV2_Options_Option& optScaleFactor(opts[ScaleFactor]); | |||||
| optScaleFactor.context = LV2_OPTIONS_INSTANCE; | |||||
| optScaleFactor.subject = 0; | |||||
| optScaleFactor.key = kUridScaleFactor; | |||||
| optScaleFactor.size = sizeof(float); | |||||
| optScaleFactor.type = kUridAtomFloat; | |||||
| optScaleFactor.value = &uiScale; | |||||
| LV2_Options_Option& optTransientWinId(opts[TransientWinId]); | LV2_Options_Option& optTransientWinId(opts[TransientWinId]); | ||||
| optTransientWinId.context = LV2_OPTIONS_INSTANCE; | optTransientWinId.context = LV2_OPTIONS_INSTANCE; | ||||
| @@ -1060,6 +1060,8 @@ private: | |||||
| return kUridMidiEvent; | return kUridMidiEvent; | ||||
| if (std::strcmp(uri, LV2_PARAMETERS__sampleRate) == 0) | if (std::strcmp(uri, LV2_PARAMETERS__sampleRate) == 0) | ||||
| return kUridParamSampleRate; | return kUridParamSampleRate; | ||||
| if (std::strcmp(uri, LV2_UI__scaleFactor) == 0) | |||||
| return kUridScaleFactor; | |||||
| if (std::strcmp(uri, LV2_UI__windowTitle) == 0) | if (std::strcmp(uri, LV2_UI__windowTitle) == 0) | ||||
| return kUridWindowTitle; | return kUridWindowTitle; | ||||
| @@ -1188,6 +1190,8 @@ private: | |||||
| return LV2_MIDI__MidiEvent; | return LV2_MIDI__MidiEvent; | ||||
| case kUridParamSampleRate: | case kUridParamSampleRate: | ||||
| return LV2_PARAMETERS__sampleRate; | return LV2_PARAMETERS__sampleRate; | ||||
| case kUridScaleFactor: | |||||
| return LV2_UI__scaleFactor; | |||||
| case kUridWindowTitle: | case kUridWindowTitle: | ||||
| return LV2_UI__windowTitle; | return LV2_UI__windowTitle; | ||||
| @@ -60,6 +60,7 @@ | |||||
| #define LV2_UI__floatProtocol LV2_UI_PREFIX "floatProtocol" ///< http://lv2plug.in/ns/extensions/ui#floatProtocol | #define LV2_UI__floatProtocol LV2_UI_PREFIX "floatProtocol" ///< http://lv2plug.in/ns/extensions/ui#floatProtocol | ||||
| #define LV2_UI__peakProtocol LV2_UI_PREFIX "peakProtocol" ///< http://lv2plug.in/ns/extensions/ui#peakProtocol | #define LV2_UI__peakProtocol LV2_UI_PREFIX "peakProtocol" ///< http://lv2plug.in/ns/extensions/ui#peakProtocol | ||||
| #define LV2_UI__resize LV2_UI_PREFIX "resize" ///< http://lv2plug.in/ns/extensions/ui#resize | #define LV2_UI__resize LV2_UI_PREFIX "resize" ///< http://lv2plug.in/ns/extensions/ui#resize | ||||
| #define LV2_UI__scaleFactor LV2_UI_PREFIX "scaleFactor" ///< http://lv2plug.in/ns/extensions/ui#scaleFactor | |||||
| #define LV2_UI__showInterface LV2_UI_PREFIX "showInterface" ///< http://lv2plug.in/ns/extensions/ui#showInterface | #define LV2_UI__showInterface LV2_UI_PREFIX "showInterface" ///< http://lv2plug.in/ns/extensions/ui#showInterface | ||||
| #define LV2_UI__touch LV2_UI_PREFIX "touch" ///< http://lv2plug.in/ns/extensions/ui#touch | #define LV2_UI__touch LV2_UI_PREFIX "touch" ///< http://lv2plug.in/ns/extensions/ui#touch | ||||
| #define LV2_UI__ui LV2_UI_PREFIX "ui" ///< http://lv2plug.in/ns/extensions/ui#ui | #define LV2_UI__ui LV2_UI_PREFIX "ui" ///< http://lv2plug.in/ns/extensions/ui#ui | ||||