summaryrefslogtreecommitdiff
path: root/multimedia/qt6-multimedia/files/patch-src_multimedia_pulseaudio_qpulseaudiosink.cpp
blob: 567d571867a6a52b6707c9fd642cce4cefe548c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Fix 32-bit builds with PULSEAUDIO option.

--- src/multimedia/pulseaudio/qpulseaudiosink.cpp.orig	2025-05-04 13:16:35 UTC
+++ src/multimedia/pulseaudio/qpulseaudiosink.cpp
@@ -491,8 +491,8 @@ qint64 QPulseAudioSink::write(const char *data, qint64
     // or even affect the system volume if flat volumes are enabled
 
     QAudioHelperInternal::applyVolume(volume(), m_format,
-                                      QSpan{ reinterpret_cast<const std::byte *>(data), len },
-                                      QSpan{ reinterpret_cast<std::byte *>(dest), len });
+                                      QSpan{ reinterpret_cast<const std::byte *>(data), static_cast<qsizetype>(len) },
+                                      QSpan{ reinterpret_cast<std::byte *>(dest), static_cast<qsizetype>(len) });
 
     if ((pa_stream_write(m_stream.get(), dest, len, nullptr, 0, PA_SEEK_RELATIVE)) < 0) {
         engineLock.unlock();