diff --git a/Audio/soundin.cpp b/Audio/soundin.cpp index 5589393b9..a2856c255 100644 --- a/Audio/soundin.cpp +++ b/Audio/soundin.cpp @@ -163,6 +163,7 @@ void SoundInput::reset (bool report_dropped_frames) { auto lost_usec = m_stream->elapsedUSecs () - m_stream->processedUSecs () - cummulative_lost_usec_; Q_EMIT dropped_frames (m_stream->format ().framesForDuration (lost_usec), lost_usec); + qDebug () << "SoundInput::reset: frames dropped:" << m_stream->format ().framesForDuration (lost_usec) << "sec:" << lost_usec / 1.e6; } cummulative_lost_usec_ = m_stream->elapsedUSecs () - m_stream->processedUSecs (); } diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 6625e8fd9..f6cd97753 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -474,7 +474,7 @@ 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) { - showStatusMessage (tr ("%1 (%2 sec) audio frames dropped").arg (dropped_frames).arg (usec / 1.e6)); + showStatusMessage (tr ("%1 (%2 sec) audio frames dropped").arg (dropped_frames).arg (usec / 1.e6, 5, 'f', 3)); }); connect (&m_audioThread, &QThread::finished, m_soundInput, &QObject::deleteLater);