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

QAudioInput gives wrong sampleType on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.13
    • Multimedia
    • None
    • Windows

    Description

      The Qt multimedia API allows the user to interrogate or specify the signedness of audio samples using QAudioInput::sampleType(). This doesn't work on Windows. Windows always uses unsigned integer format for 8-bit samples, and signed integer format for everything else. Qt allows this parameter to be set to either, but simply ignores it. What it should do is report signed 8-bit and unsigned other sizes as invalid formats, and return corrected values in QAudioDeviceInfo::nearestFormat(), when running on Windows.

      A similar issue was dealt with in https://bugreports.qt.io/browse/QTBUG-45540 regarding .wav files in QAudioDecoder.

      Attachments

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

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            pderocco Paul DeRocco
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes