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

QAudioOutput volume is almost not audible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.9.0 Beta 3
    • Fix Version/s: None
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      iOS 7, Qt 5.4.1, xCode 6.1
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      When using QAudioOutput on iOS then the volume is hardly audible when played with the phone's speaker. The volume is ok when played on headphones.

      Sample code:

      QAudioFormat format;
      format.setSampleRate(sampleRate);
      format.setChannelCount(2);
      format.setSampleSize(16);
      format.setCodec("audio/pcm");
      format.setByteOrder(QAudioFormat::LittleEndian);
      format.setSampleType(QAudioFormat::SignedInt);
      
      m_audioOutput = new QAudioOutput(format, this);
      m_audioOutput->setNotifyInterval(10);
      m_audioOutput->setVolume(1.0);
      
      QFile* f = new QFile("sample.wav");
      f->open(QFile::ReadOnly);
      m_audioOutput->start(f);
      

      The same works fine on other systems such as Android, or Windows.

        Attachments

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

          Activity

            People

            Assignee:
            ylopes Yoann Lopes
            Reporter:
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes