mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-23 19:25:37 -05:00
Include period start time in dropped samples message box details
This commit is contained in:
parent
d1fa08ab78
commit
3a71184040
@ -480,10 +480,14 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
}
|
||||
if (dropped_frames > 48000) // 1 second
|
||||
{
|
||||
auto period = qt_truncate_date_time_to (QDateTime::currentDateTimeUtc ().addMSecs (-m_TRperiod / 2.), m_TRperiod * 1e3);
|
||||
MessageBox::warning_message (this
|
||||
, tr ("Audio Source")
|
||||
, tr ("Reduce system load")
|
||||
, tr ("Excessive dropped samples - %1 (%2 sec) audio frames dropped").arg (dropped_frames).arg (usec / 1.e6, 5, 'f', 3));
|
||||
, tr ("Excessive dropped samples - %1 (%2 sec) audio frames dropped in period starting %3")
|
||||
.arg (dropped_frames)
|
||||
.arg (usec / 1.e6, 5, 'f', 3)
|
||||
.arg (period.toString ("hh:mm:ss")));
|
||||
}
|
||||
});
|
||||
connect (&m_audioThread, &QThread::finished, m_soundInput, &QObject::deleteLater);
|
||||
|
Loading…
Reference in New Issue
Block a user