mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -05:00
Increased threshold for status message and warning on dropped frames
This commit is contained in:
parent
4f68dfda40
commit
8e37dbd8c1
@ -476,17 +476,16 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
connect(m_soundInput, &SoundInput::error, this, &MainWindow::showSoundInError);
|
||||
// connect(m_soundInput, &SoundInput::status, this, &MainWindow::showStatusMessage);
|
||||
connect (m_soundInput, &SoundInput::dropped_frames, this, [this] (qint32 dropped_frames, qint64 usec) {
|
||||
if (dropped_frames > 4800) // 1/10 second
|
||||
if (dropped_frames > 48000 / 5) // 1/5 second
|
||||
{
|
||||
showStatusMessage (tr ("%1 (%2 sec) audio frames dropped").arg (dropped_frames).arg (usec / 1.e6, 5, 'f', 3));
|
||||
}
|
||||
if (dropped_frames > 24000) // 1/2
|
||||
// second
|
||||
if (dropped_frames > 48000) // 1 second
|
||||
{
|
||||
MessageBox::warning_message (this
|
||||
, tr ("Audio Source")
|
||||
, tr ("Excessive dropped samples")
|
||||
, tr ("Reduce system load, or increase audio buffer size"));
|
||||
, tr ("Reduce system load"));
|
||||
}
|
||||
});
|
||||
connect (&m_audioThread, &QThread::finished, m_soundInput, &QObject::deleteLater);
|
||||
|
Loading…
Reference in New Issue
Block a user