JAERO icon indicating copy to clipboard operation
JAERO copied to clipboard

QAudioInput may sometimes hang

Open jontio opened this issue 3 years ago • 0 comments

A few people have reported a strange bug where if using an audio input it looks like QAudioInput may occasionally hangs and JAERO gets no new audio buffers but rather just receives the same one over and over again...

image

image

I have been told...

the Windows power profile settings were a very large part of the problem. You must not let your computer even sleep the monitor or use the screen saver as one small example, there are also hard drive and CPU power settings that can mitigate this issue.

It happens on Windows but I don't know if it also happens on Linux or Mac.

Not sure if this issue is a problem with all programs using QAudioInput or just JAERO. If it's a systemic problem with QAudioInput then the issue should probably be logged with the Qt bugtracker. I look in https://bugreports.qt.io/browse/QTBUG-77449?jql=status%20in%20(Reported%2C%20%22Need%20More%20Info%22%2C%20Open%2C%20%22In%20Progress%22%2C%20Reopened%2C%20Resolved%2C%20Implemented%2C%20Withdrawn%2C%20Rejected%2C%20%22Waiting%203rd%20party%22%2C%20%22To%20Do%22%2C%20Blocked)%20AND%20text%20~%20%22QAudioInput%22 but could not see any mention of a bug like this that hasn't been resolved

workaround

Use the ZMQ input

possible solutions

Exchange QAudioInput for something like RTAudio

jontio avatar Jan 12 '22 20:01 jontio