Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Phonon. MediaObject not seekable once you add an effect.
Forum Updated to NodeBB v4.3 + New Features

Phonon. MediaObject not seekable once you add an effect.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AntonZed
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tirkedi
      wrote on last edited by
      #2

      I got the same thing here!

      Gstreamer backend and qt 4.8

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved