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. ReplayGain support in Phonon
Qt 6.11 is out! See what's new in the release blog

ReplayGain support in Phonon

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.6k 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.
  • J Offline
    J Offline
    jech
    wrote on last edited by
    #1

    Hello,

    I'm developing a media player which will be used primary on Windows (but I want to support Linux as well). I want the player to support ReplayGain. I believe it is supported in Phonon, but I couldn't find any documentation on this.

    Also according to what I found, the support depends on the backend. On Windows it is DirectShow, which probably won't support it. If this is true, how can I detect if a backend supports ReplayGain or not?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      renato.filho
      wrote on last edited by
      #2

      Some time ago I search for the same feature and I did not find nothing. And the only solution which works on all backed was:

      @m_music = Phonon::createPlayer(Phonon::MusicCategory, m_source);
      QObject::connect(m_music, SIGNAL(finished()), this, SLOT(replay()));@

      my 'replay' function;
      @m_music->setCurrentSource(m_source); // reset the source
      m_music->play(); // and play again@

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jech
        wrote on last edited by
        #3

        renato.filho renato.filho> Thanks for your answer, but I think you are talking about "repeat" function. I don't have any problems with that. I'm interested in "Replay Gain":http://en.wikipedia.org/wiki/Replay_Gain

        My current solution is to catch trackChanged signal (I will probably switch to finished() signal) and then I adjust the volume in dB according to Replay Gain values in tags.

        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