diff --git a/soundin.cpp b/soundin.cpp index 3da3bdd09..e08d45271 100644 --- a/soundin.cpp +++ b/soundin.cpp @@ -133,6 +133,12 @@ void SoundInput::handleStateChanged (QAudio::State newState) const Q_EMIT status (tr ("Suspended")); break; +#if QT_VERSION >= QT_VERSION_CHECK (5, 10, 0) + case QAudio::InterruptedState: + Q_EMIT status (tr ("Interrupted")); + break; +#endif + case QAudio::StoppedState: if (audioError ()) { diff --git a/soundout.cpp b/soundout.cpp index 944f04e4e..a4f8800df 100644 --- a/soundout.cpp +++ b/soundout.cpp @@ -184,6 +184,12 @@ void SoundOutput::handleStateChanged (QAudio::State newState) Q_EMIT status (tr ("Suspended")); break; +#if QT_VERSION >= QT_VERSION_CHECK (5, 10, 0) + case QAudio::InterruptedState: + Q_EMIT status (tr ("Interrupted")); + break; +#endif + case QAudio::StoppedState: if (audioError ()) { diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 7c79a00cc..5a6665716 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include