mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 12:23:37 -05:00
Reduce non-Windows Tx audio buffer size
This commit is contained in:
parent
6214cc9835
commit
041c6b68fe
@ -106,9 +106,11 @@ void SoundOutput::restart (QIODevice * source)
|
|||||||
//qDebug () << "SoundOut default buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
|
//qDebug () << "SoundOut default buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
|
||||||
if (m_framesBuffered)
|
if (m_framesBuffered)
|
||||||
{
|
{
|
||||||
//#if defined (Q_OS_WIN)
|
#if defined (Q_OS_WIN)
|
||||||
m_stream->setBufferSize (m_stream->format().bytesForFrames (m_framesBuffered));
|
m_stream->setBufferSize (m_stream->format().bytesForFrames (m_framesBuffered));
|
||||||
//#endif
|
#else
|
||||||
|
m_stream->setBufferSize (m_stream->format().bytesForFrames (3456));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
m_stream->setCategory ("production");
|
m_stream->setCategory ("production");
|
||||||
m_stream->start (source);
|
m_stream->start (source);
|
||||||
|
Loading…
Reference in New Issue
Block a user