qaudioinput

QAudioOutput underrun issue on Realtime Play from Microphone with QAudioInput

自古美人都是妖i 提交于 2021-01-28 10:45:10
问题 Sometimes I am getting "underrun occured" from ALSA lib and that means the audioouput is not getting the values on time to play. Alsa then repeats the old buffer values on the speaker. How can I avoid underruns on QAudioOuput? I am using Qt5.9.1 and ARM Based CPU running on Debian 8. I tried to change the buffersize: audioOutput->setBufferSize(144000); qDebug()<<"buffersize "<<audioOutput->bufferSize()<<" period size" . <<audioOutput->periodSize(); I get: buffersize 144000 period size 0 and

On Fedora using Qt 5.9.4, I'm unable to simultaneously record and play audio at the same time

瘦欲@ 提交于 2020-04-17 22:53:31
问题 I'm trying to write a program in Qt that simultaneously records audio from a microphone and plays it back at the same time. I'm using Qt 5.9.4 and I'm on Fedora 29 (can't update to latest version as our production environment is Fedora 29 -- can't update it, have already asked boss). I have some barebones code written, as you can see below. But everytime I run the program, I get the following error message: using null output device, none available using null input device, none available I've