mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 05:50:49 +00:00
Increase buffer size for glitch-free playback on macOS
This commit is contained in:
1 parent
879c524658
commit
da4697794d
1 file changed
+2
-2
@@ -29,8 +29,8 @@ bool QtAudioRenderer::prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION* o
|
|||||||
|
|
||||||
m_AudioOutput = new QAudioOutput(format);
|
m_AudioOutput = new QAudioOutput(format);
|
||||||
|
|
||||||
// Buffer 20 ms of audio data
|
// Buffer 40 ms of audio data
|
||||||
m_AudioOutput->setBufferSize(format.bytesForDuration(20000));
|
m_AudioOutput->setBufferSize(format.bytesForDuration(40000));
|
||||||
|
|
||||||
m_OutputDevice = m_AudioOutput->start();
|
m_OutputDevice = m_AudioOutput->start();
|
||||||
if (m_OutputDevice == nullptr) {
|
if (m_OutputDevice == nullptr) {
|
||||||
|
|||||||
Reference in new issue
Block a user