gentoo-ebuilds/media-radio/wsjtx_improved/files/wsjtx-2.8.0-qt692-audio.patch
Thomas Beierlein 12e09c25de
media-radio/wsjtx_improved: Fix missing audio output with >=qt-6.9.2
Closes: https://bugs.gentoo.org/963899
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
2025-10-10 20:01:49 +02:00

22 lines
805 B
Diff

# fixes Bug #https://bugs.gentoo.org/963899
# Due to changes on the pulseaudio backend >=Qt 692 needs a bytesAvailable() function defined which returns more than zero.
diff --git a/Modulator/Modulator.hpp b/Modulator/Modulator.hpp
index fee2877..7203696 100755
--- a/Modulator/Modulator.hpp
+++ b/Modulator/Modulator.hpp
@@ -50,14 +50,12 @@ protected:
{
return -1; // we don't consume data
}
-#if defined(Q_OS_WIN)
-// On Windows, bytesAvailable() must return a size that exceeds some threshold
+// bytesAvailable() must return a size that exceeds some threshold
// in order for the AudioSink to go into Active state and start pulling data.
qint64 bytesAvailable () const
{
return 8000;
}
-#endif
private:
qint16 postProcessSample (qint16 sample) const;