diff options
| author | Christoph Berg <myon@debian.org> | 2022-12-04 22:15:46 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2022-12-04 22:15:46 +0100 |
| commit | 720f65addc6e7039817074330332b1a2b3110dc3 (patch) | |
| tree | 23e67126ac6495e4fc0cb6c59f845f98468ae1b2 /Audio/soundin.cpp | |
| parent | 7fade58d254e231b623febf3d303c108cd03e805 (diff) | |
| parent | fa73b3f50ec6ead52c3371a96f62bc6e666a9ee5 (diff) | |
Update upstream source from tag 'upstream/2.6.0_rc5+repack'
Update to upstream version '2.6.0~rc5+repack'
with Debian dir e1472b5b51a5aa5dbb8c6e570a987179dd626bfc
Diffstat (limited to 'Audio/soundin.cpp')
| -rwxr-xr-x | Audio/soundin.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Audio/soundin.cpp b/Audio/soundin.cpp index 0503c665..affb8104 100755 --- a/Audio/soundin.cpp +++ b/Audio/soundin.cpp @@ -180,13 +180,15 @@ void SoundInput::reset (bool report_dropped_frames) if (cummulative_lost_usec_ != std::numeric_limits<qint64>::min () && report_dropped_frames)
{
auto lost_usec = elapsed_usecs - m_stream->processedUSecs () - cummulative_lost_usec_;
- if (std::abs (lost_usec) > 48000 / 5)
- {
- LOG_WARN ("Detected dropped audio source samples: "
- << m_stream->format ().framesForDuration (lost_usec)
- << " (" << std::setprecision (4) << lost_usec / 1.e6 << " S)");
- }
- else if (std::abs (lost_usec) > 5 * 48000)
+ // disable log warnings on dropped audio for now, as detection is not reliable
+// if (std::abs (lost_usec) > 48000 / 5)
+// {
+// LOG_WARN ("Detected dropped audio source samples: "
+// << m_stream->format ().framesForDuration (lost_usec)
+// << " (" << std::setprecision (4) << lost_usec / 1.e6 << " S)");
+// }
+// else if (std::abs (lost_usec) > 5 * 48000)
+ if (std::abs (lost_usec) > 5 * 48000)
{
LOG_ERROR ("Detected excessive dropped audio source samples: "
<< m_stream->format ().framesForDuration (lost_usec)
|
