Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QMediaPlayer playbackRate is ignored - linux debian
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer playbackRate is ignored - linux debian

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 1 Posters 283 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.
  • E Offline
    E Offline
    egorski
    wrote on last edited by egorski
    #1

    QMediaPlayer used on Linux Debian (with gstreamer installed, and pulseaudio) is ignoring the setPlaybackRate(2.00) - it plays at 100% speed.

    Any hints how to easily fix this, perhaps install some things in Debian?

    I guess it plays through PulseAudio, because I see my program appear in pulsemixer.

    EDIT: it works for .wav files, but fails for .mp3 files

    E 1 Reply Last reply
    0
    • E egorski

      QMediaPlayer used on Linux Debian (with gstreamer installed, and pulseaudio) is ignoring the setPlaybackRate(2.00) - it plays at 100% speed.

      Any hints how to easily fix this, perhaps install some things in Debian?

      I guess it plays through PulseAudio, because I see my program appear in pulsemixer.

      EDIT: it works for .wav files, but fails for .mp3 files

      E Offline
      E Offline
      egorski
      wrote on last edited by
      #2

      I discovered that it can be made to work, if you wait some time after it plays, and then change position of playback (even back to the same position).

      If you do it too soon (e.g. set position 0 right on start) then it doesn't work.

      Not sure what is the event on which that needs to be done to correctly apply the speed/playbackrate setting, so in worst case one can have a timer that keeps calling setposition back to current position all the time.

      It's kinda hack but it works. Is there a better way?

      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