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

QSound iOS very low volume

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • Some future release
    • 5.9.0 Beta 3
    • Multimedia
    • None
    • iPhone 4 running iOS 7, OSX Mavericks
    • iOS/tvOS/watchOS

    Description

      When playing a sound using QSound in iOS it plays fine, but at a very low volume. Running the same code under OSX, the sound is perfectly audible.

      QT += multimedia
      QTPLUGIN += qtaudio_coreaudio

      QSound *sound = new QSound(":/sounds/blip");
      sound->setVolume(1.);
      sound->play();

      I've noticed a notification when first running the application in the iPhone to allow the app to use the microphone, and I think that's strange, so I believe internally the device specified to playback the sound is somehow incorrect.

      Reviewing the sources from CoreAudio plugin, in the CoreAudioSessionManager constructor, the category is being set to PlayAndRecord. I think this is why it tries to access the microphone. Can this be related to the low volume at playback? Changing this value to Playback, may fix this problem?

      Attachments

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

        Activity

          People

            DanielSt Peter Staab
            ein André Santos
            Votes:
            5 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes