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. SOLVED - QSound vs Phonon - (QSoundEffect win)

SOLVED - QSound vs Phonon - (QSoundEffect win)

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.0k 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.
  • M Offline
    M Offline
    maximus
    wrote on last edited by
    #1

    Hi,

    I'm currently using QSound::play() to play various .wav sounds.
    I am considering switching to Phonon::AudioOutput to get more utilities.

    For example, some users would like to be able to modify the volume at which the sounds are played, I haven't found a function for that with QSound.

    I think this would be possible with Phonon.
    But first, some question for you guys that used it:
    -Is it easy to integrate Phonon? (i.e : just include and use it?)
    -Is it really cross-platform? My app need to run on Windows and Mac without too much extra code and compile shenanigan :)
    -Will AudioOutput::setVolume ( qreal newVolume ) set the volume for the whole OS or just the sounds played with Phonon?

    Thank you!


    Free Indoor Cycling Software - https://maximumtrainer.com

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maximus
      wrote on last edited by
      #2

      Nevermind, just read this for Qt 5.3 :
      _
      Phonon framework is no longer part of Qt, but it continues to be maintained by the Phonon developers and has support for Qt 5. See _

      I'm using 5.2.1, so i'll stick to QSound, maybe I can find a way to control volume.
      Checking the new class "QAudioOutput" at the moment..


      Free Indoor Cycling Software - https://maximumtrainer.com

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maximus
        wrote on last edited by
        #3

        Just found out about another class that does this :
        QSoundEffect
        This one seems to be the one I'm looking for.

        Sometime Qt has too much stuff that does the same thing lol!


        Free Indoor Cycling Software - https://maximumtrainer.com

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          The use cases are not completely the same ;)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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