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

QAudioInput limited to 48000 Hz under windows, not OSX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.x
    • 4.7.0, 4.8.0
    • Multimedia
    • None
    • Windows XP, Windows 7, etc.
    • macOS
    • 1c9e5df36946fb0a7554b7f1d55ddfd10778d677

    Description

      Under OSX, I can open a QAudioInput at 16-bit/channel, 96000 stereo, which is the sample rate / channel arrangement of the device I am coding for. Works fine. Under Windows, the device will not open unless the sample rate is 48000 or less. Looking at the source code, there is an arbitrary limit in the windows framework. This is a ridiculous limit, well below present sample rates of even the most mundane hardware, and I REALLY need this to be fixed. Here's at least part of the problem, from "qaudioinput_win32_p.cpp":

      else if (settings.frequency() < 8000 || settings.frequency() > 48000) {
      qWarning("QAudioInput: open error, frequency out of range (%d).", settings.frequency())

      Attachments

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

        Activity

          People

            lzelensk Lev Zelenskiy
            fyngyrz Leo Pinnae
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes