From 7b000afb78125c23682bbd8fd97bc64634f7274d Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 27 Sep 2020 17:25:58 +0100 Subject: [PATCH] Ignore audio i/p underrun error until macOS behaviour understood --- Audio/soundin.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Audio/soundin.cpp b/Audio/soundin.cpp index 92368016b..53779b341 100644 --- a/Audio/soundin.cpp +++ b/Audio/soundin.cpp @@ -25,14 +25,16 @@ bool SoundInput::checkStream () Q_EMIT error (tr ("An error occurred during read from the audio input device.")); break; - case QAudio::UnderrunError: - Q_EMIT error (tr ("Audio data not being fed to the audio input device fast enough.")); - break; + // case QAudio::UnderrunError: + // Q_EMIT error (tr ("Audio data not being fed to the audio input device fast enough.")); + // break; case QAudio::FatalError: Q_EMIT error (tr ("Non-recoverable error, audio input device not usable at this time.")); break; + case QAudio::UnderrunError: // TODO G4WJS: stop ignoring this + // when we find the cause on macOS case QAudio::NoError: result = true; break;