Use same user defined audio out buffer sizes on all platforms

This commit is contained in:
Bill Somerville 2020-12-01 20:55:10 +00:00
parent 4492d8e977
commit 6214cc9835
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 2 additions and 2 deletions

View File

@ -106,9 +106,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)
//#if defined (Q_OS_WIN)
m_stream->setBufferSize (m_stream->format().bytesForFrames (m_framesBuffered));
#endif
//#endif
}
m_stream->setCategory ("production");
m_stream->start (source);