Ignore audio i/p underrun error until macOS behaviour understood

This commit is contained in:
Bill Somerville 2020-09-27 17:25:58 +01:00
parent 344000d994
commit 7b000afb78
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -25,14 +25,16 @@ bool SoundInput::checkStream ()
Q_EMIT error (tr ("An error occurred during read from the audio input device.")); Q_EMIT error (tr ("An error occurred during read from the audio input device."));
break; break;
case QAudio::UnderrunError: // case QAudio::UnderrunError:
Q_EMIT error (tr ("Audio data not being fed to the audio input device fast enough.")); // Q_EMIT error (tr ("Audio data not being fed to the audio input device fast enough."));
break; // break;
case QAudio::FatalError: case QAudio::FatalError:
Q_EMIT error (tr ("Non-recoverable error, audio input device not usable at this time.")); Q_EMIT error (tr ("Non-recoverable error, audio input device not usable at this time."));
break; break;
case QAudio::UnderrunError: // TODO G4WJS: stop ignoring this
// when we find the cause on macOS
case QAudio::NoError: case QAudio::NoError:
result = true; result = true;
break; break;