mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-13 21:02:28 +00:00
Increase buffer size for glitch-free playback on macOS
This commit is contained in:
parent
879c524658
commit
da4697794d
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ bool QtAudioRenderer::prepareForPlayback(const OPUS_MULTISTREAM_CONFIGURATION* o
|
|||
|
||||
m_AudioOutput = new QAudioOutput(format);
|
||||
|
||||
// Buffer 20 ms of audio data
|
||||
m_AudioOutput->setBufferSize(format.bytesForDuration(20000));
|
||||
// Buffer 40 ms of audio data
|
||||
m_AudioOutput->setBufferSize(format.bytesForDuration(40000));
|
||||
|
||||
m_OutputDevice = m_AudioOutput->start();
|
||||
if (m_OutputDevice == nullptr) {
|
||||
|
|
Loading…
Reference in a new issue