Phonon. MediaObject not seekable once you add an effect.



  • Hello.
    I have used the "speed" effect in phonon in order to control audio speed. Once the effect is set, a valid MediaSource can no longer be seekable.

    Is this intended, or is it a bug.
    Here is the code for the effect:

    @ QListPhonon::EffectDescription effectDescriptions =
    Phonon::BackendCapabilities::availableAudioEffects();
    foreach(Phonon::EffectDescription effectDesc, effectDescriptions)
    {
    if(effectDesc.name() == "speed")
    {
    speedEffect = new Phonon::Effect(effectDesc);
    path.insertEffect(speedEffect);

            QList<Phonon::EffectParameter> parameters = speedEffect->parameters();
            foreach(Phonon::EffectParameter param, parameters)
            {
                if(param.name() == "speed")
                {
                    speedParameter = param;
                }
            }
    
            break;
        }
    
    }
    

    // After that i set the speed using

    speedEffect->setParameterValue(speedParameter,realSpeed);
    @

    I am using Qt version 4.7.4.



  • I got the same thing here!

    Gstreamer backend and qt 4.8


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.