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

QAudioInput / QAudioOutput: Sample rate 22050 on Mac doesn't work any more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0 Beta1
    • 5.2.0
    • Multimedia
    • None
    • Mac OS X 10.7.4; Qt 5.2.0 (and 4.8.1)
    • macOS
    • 4d31ec0793af1e4eb79f88888399641678d4a39e

    Description

      With Qt 4.8.1, it was possible to record / play sounds using QAudioInput / QAudioOutput using sample rate 22050.
      With Qt 5.2.0, on the same environment (Mac OS X 10.7.4), it doesn't work any more.

      Using Qt 4.8.1, the list returned by QAudioDeviceInfo::supportedSampleRates() (on standard Input/Output devices) contains 22050, using Qt 5.2.0 it doesn't.

      I looked in the source code and compared code of QAudioDeviceInfoInternal::frequencyList() (qaudiodeviceinfo_mac_p.cpp, Qt 4.8.1) with CoreAudioDeviceInfo::supportedSampleRates() (coreaudiodeviceinfo.mm, Qt 5.2.0). These functions seem to be similar, but in QAudioDeviceInfoInternal::frequencyList() there are the lines

      // Add some common frequencies
      rc << 8000 << 11025 << 22050 << 44100;

      which are absent in CoreAudioDeviceInfo::supportedSampleRates().

      Obvious, these lines were important?

      Please please fix it, sample rate 22050 is ESSENTIAL in my application!
      Many thanks, Christian

      -----------------

      Similar problem with channel count, see comment below.

      Attachments

        Activity

          People

            janichol Andy Nichols
            chriskatze Christian Schauss
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: