Can I improve the responsiveness of QAudioOutput/QAudioInput?
I am experimenting with
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
stateChangedsignal with state
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?
I'd go with:
- Opening the device(s)
- Loading data from/writing data to
- System load