continue;
}
item->initEffect(effect);
+
+ // Old LADSPA filter, deprecated
+ /*
if (effect.attribute("tag") == "ladspa") {
QString ladpsaFile = m_document->getLadspaFile();
initEffects::ladspaEffectFile(ladpsaFile, effect.attribute("ladspaid").toInt(), getLadspaParams(effect));
effect.setAttribute("src", ladpsaFile);
- }
+ }*/
new AddEffectCommand(this, m_document->tracksCount() - item->track(), item->startPos(), effect, true, effectCommand);
count++;
}
} else {
item->initEffect(effect);
}
-
- if (effect.attribute("tag") == "ladspa") {
+ // Old LADSPA filter, deprecated
+ /* if (effect.attribute("tag") == "ladspa") {
QString ladpsaFile = m_document->getLadspaFile();
initEffects::ladspaEffectFile(ladpsaFile, effect.attribute("ladspaid").toInt(), getLadspaParams(effect));
effect.setAttribute("src", ladpsaFile);
}
+ */
new AddEffectCommand(this, m_document->tracksCount() - item->track(), item->startPos(), effect, true, effectCommand);
}
}
if (pos < GenTime()) {
// editing a track effect
EffectsParameterList effectParams = getEffectArgs(effect);
- if (effect.attribute("tag") == "ladspa") {
+ // Old LADSPA filter, deprecated
+ /*if (effect.attribute("tag") == "ladspa") {
// Update the ladspa affect file
initEffects::ladspaEffectFile(effect.attribute("src"), effect.attribute("ladspaid").toInt(), getLadspaParams(effect));
- }
+ }*/
// check if we are trying to reset a keyframe effect
/*if (effectParams.hasParam("keyframes") && effectParams.paramValue("keyframes").isEmpty()) {
clip->initEffect(effect);
}
EffectsParameterList effectParams = getEffectArgs(effect);
- if (effect.attribute("tag") == "ladspa") {
+ // Old LADSPA filter, deprecated
+ /*if (effect.attribute("tag") == "ladspa") {
// Update the ladspa affect file
initEffects::ladspaEffectFile(effect.attribute("src"), effect.attribute("ladspaid").toInt(), getLadspaParams(effect));
- }
+ }*/
// check if we are trying to reset a keyframe effect
if (effectParams.hasParam("keyframes") && effectParams.paramValue("keyframes").isEmpty()) {
clip->initEffect(effect);
// Fill transitions list.
fillTransitionsList(repository, &MainWindow::transitions, transitionsItemList);
+ //WARNING: deprecated, we now use MLT to detect LADSPA filters
+ /*
// Set the directories to look into for ladspa plugins.
KGlobal::dirs()->addResourceType("ladspa_plugin", 0, "lib/ladspa");
KGlobal::dirs()->addResourceDir("ladspa_plugin", "/usr/lib/ladspa");
KGlobal::dirs()->addResourceDir("ladspa_plugin", "/opt/lib/ladspa");
KGlobal::dirs()->addResourceDir("ladspa_plugin", "/opt/local/lib/ladspa");
KGlobal::dirs()->addResourceDir("ladspa_plugin", "/usr/lib64/ladspa");
- KGlobal::dirs()->addResourceDir("ladspa_plugin", "/usr/local/lib64/ladspa");
+ KGlobal::dirs()->addResourceDir("ladspa_plugin", "/usr/local/lib64/ladspa");*/
// Set the directories to look into for effects.
QStringList direc = KGlobal::dirs()->findDirs("appdata", "effects");
bool ladspaOk = true;
if (tag == "ladspa") {
- QString library = documentElement.attribute("library", QString());
- if (KStandardDirs::locate("ladspa_plugin", library).isEmpty()) ladspaOk = false;
+ //WARNING: old LADSPA xml effects are deprecated, so hide them
+ /*QString library = documentElement.attribute("library", QString());
+ if (KStandardDirs::locate("ladspa_plugin", library).isEmpty()) ladspaOk = false;*/
+ ladspaOk = false;
}
// Parse effect information.
}
}
}
- if (effecttag == "ladspa") {
+ // Old LADSPA filter, deprecated
+ /*if (effecttag == "ladspa") {
//QString ladspaEffectFile = EffectsList::parameter(effect, "src", "property");
if (!QFile::exists(ladspaEffectFile)) {
initEffects::ladspaEffectFile(ladspaEffectFile, currenteffect.attribute("ladspaid").toInt(), m_trackview->getLadspaParams(currenteffect));
}
currenteffect.setAttribute("src", ladspaEffectFile);
- }
+ }*/
+
if (disableeffect) currenteffect.setAttribute("disable", "1");
if (clip)
clip->addEffect(currenteffect, false);