From ab81491399b569a4259bb0180f4904e5ca78bba0 Mon Sep 17 00:00:00 2001 From: Henna Haahti Date: Sun, 7 Jan 2018 20:13:46 +0200 Subject: [PATCH] Remove lv2:sampleRate --- distrho/src/DistrhoPluginLV2.cpp | 13 ------------- distrho/src/DistrhoPluginLV2export.cpp | 4 +--- distrho/src/DistrhoUILV2.cpp | 14 -------------- 3 files changed, 1 insertion(+), 30 deletions(-) diff --git a/distrho/src/DistrhoPluginLV2.cpp b/distrho/src/DistrhoPluginLV2.cpp index ddfec995..35ede034 100644 --- a/distrho/src/DistrhoPluginLV2.cpp +++ b/distrho/src/DistrhoPluginLV2.cpp @@ -719,19 +719,6 @@ public: d_stderr("Host changed sampleRate but with wrong value type"); } } - else if (options[i].key == fUridMap->map(fUridMap->handle, LV2_CORE__sampleRate)) - { - if (options[i].type == fURIDs.atomDouble) - { - const double sampleRate(*(const double*)options[i].value); - fSampleRate = sampleRate; - fPlugin.setSampleRate(sampleRate); - } - else - { - d_stderr("Host changed sampleRate but with wrong value type"); - } - } } return LV2_OPTIONS_SUCCESS; diff --git a/distrho/src/DistrhoPluginLV2export.cpp b/distrho/src/DistrhoPluginLV2export.cpp index 7e53019c..3847f4da 100644 --- a/distrho/src/DistrhoPluginLV2export.cpp +++ b/distrho/src/DistrhoPluginLV2export.cpp @@ -259,7 +259,6 @@ void lv2_generate_ttl(const char* const basename) pluginString += " opts:supportedOption <" LV2_BUF_SIZE__nominalBlockLength "> ,\n"; pluginString += " <" LV2_BUF_SIZE__maxBlockLength "> ,\n"; pluginString += " <" LV2_PARAMETERS__sampleRate "> ,\n"; - pluginString += " <" LV2_CORE__sampleRate "> ;\n"; pluginString += "\n"; // UI @@ -614,8 +613,7 @@ void lv2_generate_ttl(const char* const basename) uiString += " lv2:requiredFeature <" LV2_OPTIONS__options "> ,\n"; uiString += " <" LV2_URID__map "> ;\n"; - uiString += " opts:supportedOption <" LV2_PARAMETERS__sampleRate "> ,\n"; - uiString += " opts:supportedOption <" LV2_CORE__sampleRate "> ."; + uiString += " opts:supportedOption <" LV2_PARAMETERS__sampleRate "> .\n"; uiString += "\n\n"; uiFile << uiString << std::endl; diff --git a/distrho/src/DistrhoUILV2.cpp b/distrho/src/DistrhoUILV2.cpp index 783c59f2..5ab909b5 100644 --- a/distrho/src/DistrhoUILV2.cpp +++ b/distrho/src/DistrhoUILV2.cpp @@ -190,20 +190,6 @@ public: continue; } } - else if (options[i].key == fUridMap->map(fUridMap->handle, LV2_CORE__sampleRate)) - { - if (options[i].type == fUridMap->map(fUridMap->handle, LV2_ATOM__Double)) - { - const double sampleRate(*(const double*)options[i].value); - fUI.setSampleRate(sampleRate); - continue; - } - else - { - d_stderr("Host changed sampleRate but with wrong value type"); - continue; - } - } } return LV2_OPTIONS_SUCCESS;