Looking for a Tx audio buffer size that works on macOS.

This commit is contained in:
Bill Somerville 2020-12-01 21:24:41 +00:00
parent 041c6b68fe
commit 5f85dfac61
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 2 additions and 2 deletions

View File

@ -109,10 +109,10 @@ void SoundOutput::restart (QIODevice * source)
#if defined (Q_OS_WIN)
m_stream->setBufferSize (m_stream->format().bytesForFrames (m_framesBuffered));
#else
m_stream->setBufferSize (m_stream->format().bytesForFrames (3456));
m_stream->setBufferSize (m_stream->format().bytesForFrames (48000 / 10));
#endif
}
m_stream->setCategory ("production");
m_stream->setCategory ("game");
m_stream->start (source);
// qDebug () << "SoundOut selected buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
}