mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-18 10:32:38 +00:00
Increase buffer size for glitch-free playback on macOS
This commit is contained in:
parent
879c524658
commit
da4697794d
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user