Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48154

QMediaPlayer setVolume() does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 RC
    • 5.5.0
    • Multimedia
    • None
    • Mac OS X 10.10.5
      Mac mini 387(late 2012)
    • 6a6a69b7d8343a3cdd9daff60b9288eb361148c9

    Description

      1. Create a new project with "QT Widget Application"
      2. Add a pushbutton
      3. in the pushbutton's onclick function, write:

      void MainWindow::on_pushButton_clicked()

      { player->setMedia(QUrl("qrc:/bgm/Summer.wav")); player->setVolume(1); // nothing happened player->play(); // plays normally player->setMuted(true); // nothing happened }

      4. Build and run.
      5. You'll notice that the setVolume(1) function and setMuted(true) function make no effect at all.
      6. I tried changing the setMedia()'s source from a local file, no use.
      7. I also tried change my system sound device from my USB Adam Artist 5 to mac mini's built-in speaker... and everything just went on the same way.
      8. There are 4 sound devices on my OS X system:
      1)build-in spaker
      2)ASUS PA238(because this ASUS monitor has got an HDMI)
      3)USB Audio DAC(my USB Adam Artist 5)
      4)"System Sound"(from a software that can record real-time screen from both my mac mini and my iPad. This software creates a "virtual" sound card. I think you may want to test this.)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ylopes Yoann Lopes
              kthtes YIN YI
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes