summaryrefslogtreecommitdiff
path: root/Audio/soundin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Audio/soundin.cpp')
-rwxr-xr-xAudio/soundin.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Audio/soundin.cpp b/Audio/soundin.cpp
index affb8104..fc8e08e2 100755
--- a/Audio/soundin.cpp
+++ b/Audio/soundin.cpp
@@ -109,7 +109,8 @@ void SoundInput::suspend ()
{
if (m_stream)
{
- m_stream->suspend ();
+// m_stream->suspend ();
+ m_stream->stop(); // better stop and restart audio (fixes issues on Linux and macOS)
checkStream ();
}
}
@@ -124,7 +125,8 @@ void SoundInput::resume ()
if (m_stream)
{
- m_stream->resume ();
+// m_stream->resume ();
+ m_stream->start (m_sink); // better stop and restart audio (fixes issues on Linux and macOS)
checkStream ();
}
}