Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Anyone able to compile a Windows custom Qt Multimedia framework with bugfix?
Forum Updated to NodeBB v4.3 + New Features

Anyone able to compile a Windows custom Qt Multimedia framework with bugfix?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fyngyrz
    wrote on last edited by
    #1

    The QAudioInput class -- under Windows, but not under OSX -- has an INCREDIBLY annoying and thoughtless limitation of 48000 hz maximum sample rate. I believe this to be the case with both 4.7 and 4.8.

    It would be beyond awesome if someone could create libs with that limit stripped out of there, as it is not only unnecessary, but senseless and an impediment to any modern implementation of meaningful audio input.

    AND its completely breaking my application. :(

    This line has to change:

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

    in file "qaudioinput_win32_p.cpp"

    I would suggest the following...

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

    ...but if you feel there should be a limit, then this...

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

    ...will probably suffice for at least the next six months or so, given the current state of audio sampling, etc.

    I've considered going in there with a hex editor and trying to hot-patch the thing, but it'd sure be better for everyone if the lib was actually fixed.

    ...looks hopefully around...

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fyngyrz
      wrote on last edited by
      #2

      surely someone can do this?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        If you want this to go into the regular Qt sources, I would recommend opening an issue in the "public bugtracker":https://bugreports.qt-project.org/. But I wouldn't expect that it gets accepted, as Qt 4 is more or less in maintenance mode only. I don't know for the reasons of the limitations, but I'm pretty sure there are/were some at the time that code has been written.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fyngyrz
          wrote on last edited by
          #4

          What I am asking for is for someone to recompile the 4.7 and 4.8 libraries for Windows with the above change made (hopefully that's all there is to it... because good grief, my grievously underpowered net-top can run 96 kHz audio in just this way.) I would certainly work with anyone willing to make the attempt.

          I have users who are being severely disadvantaged by this issue. I don't have a Windows system that can do the job, nor can I afford one, or I'd try and figure out how to do it myself.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fyngyrz
            wrote on last edited by
            #5

            Still no one...

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved