Browse Source

Remove lv2:sampleRate

pull/29/head
Henna Haahti 8 years ago
parent
commit
ab81491399
3 changed files with 1 additions and 30 deletions
  1. +0
    -13
      distrho/src/DistrhoPluginLV2.cpp
  2. +1
    -3
      distrho/src/DistrhoPluginLV2export.cpp
  3. +0
    -14
      distrho/src/DistrhoUILV2.cpp

+ 0
- 13
distrho/src/DistrhoPluginLV2.cpp View File

@@ -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;


+ 1
- 3
distrho/src/DistrhoPluginLV2export.cpp View File

@@ -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;


+ 0
- 14
distrho/src/DistrhoUILV2.cpp View File

@@ -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;


Loading…
Cancel
Save