mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
Looking for a Tx audio buffer size that works on macOS.
This commit is contained in:
parent
041c6b68fe
commit
5f85dfac61
@ -109,10 +109,10 @@ void SoundOutput::restart (QIODevice * source)
|
|||||||
#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));
|
||||||
#else
|
#else
|
||||||
m_stream->setBufferSize (m_stream->format().bytesForFrames (3456));
|
m_stream->setBufferSize (m_stream->format().bytesForFrames (48000 / 10));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
m_stream->setCategory ("production");
|
m_stream->setCategory ("game");
|
||||||
m_stream->start (source);
|
m_stream->start (source);
|
||||||
// qDebug () << "SoundOut selected buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
|
// qDebug () << "SoundOut selected buffer size (bytes):" << m_stream->bufferSize () << "period size:" << m_stream->periodSize ();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user