Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can I improve the responsiveness of QAudioOutput/QAudioInput?
Qt 6.12 LTS is out! See what's new in the release blog

Can I improve the responsiveness of QAudioOutput/QAudioInput?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 937 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by
    #1

    Hi,
    I am experimenting with QAudioOutput (and QAudioInput) and have a few buttons that control playback/stop, record/stop or pause.

    As a matter of principle, I update the state of the UI buttons only after I get the corresponding state back from the corresponding device, i.e. the play button transforms into the stop button only if QAudioOutput issues the stateChanged signal with state ActiveState.

    However, when doing it like this, there is a small but nevertheless noticeable delay between button click and its corresponding state change, especially on the pause/resume button.

    Since I do nothing fancy between the click and the start()/stop()/resume() commands to the devices, why this relative long delay? It really degrades user experience.

    Can this responsiveness be improved other than by directly updating the button status upon it being clicked?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I'd go with:

      • Opening the device(s)
      • Loading data from/writing data to
      • System load

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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
      • Unsolved