Speed effect can now be applied to audio clips

parent 81789d38
<!DOCTYPE kpartgui>
<effect tag="timewarp" id="speed" type="video" unique="1">
<effect tag="timewarp" id="speed" type="av" unique="1">
<name>Speed</name>
<description>Make clip play faster or slower</description>
<author>Jean-Baptiste Mardelle</author>
<author>Brian Matherly</author>
<parameter type="constant" name="speed" max="2000" min="-2000" default="100" factor="100" suffix="%">
<name>Speed</name>
</parameter>
......
......@@ -1998,10 +1998,6 @@ void CustomTrackView::addEffect(int track, GenTime pos, QDomElement effect)
if (clip) {
// Special case: speed effect
if (effect.attribute(QStringLiteral("id")) == QLatin1String("speed")) {
if (clip->clipType() != Video && clip->clipType() != AV && clip->clipType() != Playlist) {
emit displayMessage(i18n("Problem adding effect to clip"), ErrorMessage);
return;
}
QLocale locale;
locale.setNumberOptions(QLocale::OmitGroupSeparator);
double speed = locale.toDouble(EffectsList::parameter(effect, QStringLiteral("speed"))) / 100.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment