Commit 0b9ec000 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

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">
<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="%">
......@@ -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);
QLocale locale;
double speed = locale.toDouble(EffectsList::parameter(effect, QStringLiteral("speed"))) / 100.0;
Supports Markdown
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