Only tune audio buffer sizes on Windows

This commit is contained in:
Bill Somerville
2020-08-11 14:27:46 +01:00
parent 0cf14dfcc9
commit 4f68dfda40
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -85,7 +85,9 @@ void SoundOutput::restart (QIODevice * source)
//qDebug () << "SoundOut default buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
if (m_framesBuffered)
{
#if defined (Q_OS_WIN)
m_stream->setBufferSize (m_stream->format().bytesForFrames (m_framesBuffered));
#endif
}
m_stream->setCategory ("production");
m_stream->start (source);