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

REG: Mac QAudioOutput::SetVolume() is not working

    XMLWordPrintable

Details

    • macOS
    • 775914ffb21bcdc6059e5867993b927a824d0cac

    Description

      Build and run Qt 5.2.0/5.2.1 QtMultimedia AudioOutput example and try to change volume level -> nothing happens. Works fine with Qt 5.1.1.

      Could this "TODO" have something to do with this:

      qtmultimedia/src/plugins/coreaudio/coreaudiooutput.mm
      void CoreAudioOutput::setVolume(qreal volume)
      {
          const qreal normalizedVolume = qBound(qreal(0.0), volume, qreal(1.0));
          m_cachedVolume = normalizedVolume;
          if (!m_isOpen) {
              return;
          }
      
          //TODO: actually set the output volume here
          //To set the output volume you need a handle to the mixer unit
      }
      

      Attachments

        Activity

          People

            janichol Andy Nichols
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: