diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
| commit | e1c678ef00f0159bbeb5571e5ebb0d4697121334 (patch) | |
| tree | 6547edef81a62a812a4d0f64e03fda226b5f0a7e /Audio | |
| parent | b9daa22c4c3ad51cd4bc0ef624a19f21d01c9305 (diff) | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
Update upstream source from tag 'upstream/3.0.0_rc1+repack'
Update to upstream version '3.0.0~rc1+repack'
with Debian dir 68c212e23136fecf9ebc6f12ff355579224d27ee
Diffstat (limited to 'Audio')
| -rwxr-xr-x | Audio/soundin.cpp | 6 | ||||
| -rwxr-xr-x | Audio/soundout.cpp | 6 | ||||
| -rwxr-xr-x | Audio/soundout.h | 1 |
3 files changed, 10 insertions, 3 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 ();
}
}
diff --git a/Audio/soundout.cpp b/Audio/soundout.cpp index 7e15362c..feae07ac 100755 --- a/Audio/soundout.cpp +++ b/Audio/soundout.cpp @@ -148,7 +148,11 @@ void SoundOutput::stop () m_stream->reset ();
m_stream->stop ();
}
- m_stream.reset ();
+#ifdef __APPLE__
+ // this code is here to help certain rigs not drop audio, however on Sequoia this causes audio to drop, so we don't do it!
+ if( QOperatingSystemVersion::current() < QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 15) )
+ m_stream.reset ();
+#endif
}
qreal SoundOutput::attenuation () const
diff --git a/Audio/soundout.h b/Audio/soundout.h index 8bc06e7c..d5ec8f36 100755 --- a/Audio/soundout.h +++ b/Audio/soundout.h @@ -6,6 +6,7 @@ #include <QString>
#include <QAudioOutput>
#include <QAudioDeviceInfo>
+#include <QOperatingSystemVersion>
class QIODevice;
class QAudioDeviceInfo;
|
