kopia lustrzana https://gitlab.com/eliggett/wfview
Try increasing audio device buffer size
rodzic
a18d005cee
commit
99e71dd0e2
|
@ -902,11 +902,11 @@ void audioHandler::reinit()
|
|||
audioOutput = new QAudioOutput(deviceInfo, format, this);
|
||||
|
||||
// This seems to only be needed on Linux but is critical in aligning buffer sizes.
|
||||
#ifdef Q_OS_MAC
|
||||
//#ifdef Q_OS_MAC
|
||||
audioOutput->setBufferSize(chunkSize*8);
|
||||
#else
|
||||
audioOutput->setBufferSize(chunkSize*4);
|
||||
#endif
|
||||
//#else
|
||||
// audioOutput->setBufferSize(chunkSize*4);
|
||||
//#endif
|
||||
|
||||
connect(audioOutput, SIGNAL(notify()), SLOT(notified()));
|
||||
connect(audioOutput, SIGNAL(stateChanged(QAudio::State)), SLOT(stateChanged(QAudio::State)));
|
||||
|
|
Ładowanie…
Reference in New Issue