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. Play two sounds simultaneously with different volume levels
Forum Updated to NodeBB v4.3 + New Features

Play two sounds simultaneously with different volume levels

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 5 Posters 2.2k Views 3 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.
  • PrachirP Offline
    PrachirP Offline
    Prachir
    wrote on last edited by
    #1

    How can I play two .wav file simultaneously using QSoundEffect with different volume levels.
    I tried adjusting the volume level by using QSounfEffect::setVolume() for two sounds differently, but the volume of the first sound changes to the volume of the second sound when i set the second sounds volume. For eg: if I first set the volume of ABC.wav equal to 0.5, and then set volume of DEF.wav equal to 1.0, then the volume of first sound i.e. ABC.wav also becomes 1.0 rather than staying 0.5. Please help me ASAP.

    ? 1 Reply Last reply
    0
    • PrachirP Prachir

      How can I play two .wav file simultaneously using QSoundEffect with different volume levels.
      I tried adjusting the volume level by using QSounfEffect::setVolume() for two sounds differently, but the volume of the first sound changes to the volume of the second sound when i set the second sounds volume. For eg: if I first set the volume of ABC.wav equal to 0.5, and then set volume of DEF.wav equal to 1.0, then the volume of first sound i.e. ABC.wav also becomes 1.0 rather than staying 0.5. Please help me ASAP.

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi, and welcome to the Qt forum. Someone else stumbled over the same problem before, see: http://forum.qt.io/topic/46996

      1 Reply Last reply
      0
      • PrachirP Offline
        PrachirP Offline
        Prachir
        wrote on last edited by
        #3

        Thanx a lot man......SFML audio libraries saved my day.!!

        ? 1 Reply Last reply
        0
        • PrachirP Prachir

          Thanx a lot man......SFML audio libraries saved my day.!!

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @Prachir Great to hear you could work around this :-) Please mark the thread as solved, as described here: http://forum.qt.io/topic/62700/hitchhiker-s-visual-guide-to-the-qt-forum

          1 Reply Last reply
          0
          • Chris KawaC Online
            Chris KawaC Online
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #5

            This is a bug reported (QTBUG-43765) a long time ago. Please vote on it.

            1 Reply Last reply
            0
            • W Offline
              W Offline
              Walux
              wrote on last edited by
              #6

              How to add the libraries in our programs ?

              Taking things from beginning to end : That's my entertainment !

              jsulmJ 1 Reply Last reply
              0
              • W Walux

                How to add the libraries in our programs ?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Walux Your question is completely unrelated to the topic of this thread. Please create your own thread and ask there. Actually this question was already asked here several times, so you should search a bit.

                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