MINGW-packages/mingw-w64-qt6-multimedia/001-export-some-constexpr-variables.patch
2022-10-15 05:13:21 +01:00

36 lines
933 B
Diff

--- a/src/multimedia/video/qvideoframeformat.cpp
+++ b/src/multimedia/video/qvideoframeformat.cpp
@@ -52,6 +52,8 @@
}
QT_BEGIN_NAMESPACE
+
+constexpr int QVideoFrameFormat::NPixelFormats;
class QVideoFrameFormatPrivate : public QSharedData
{
--- a/src/multimedia/qmediametadata.cpp
+++ b/src/multimedia/qmediametadata.cpp
@@ -46,6 +46,8 @@
#include <qsize.h>
QT_BEGIN_NAMESPACE
+
+constexpr int QMediaMetaData::NumMetaData;
/*!
\class QMediaMetaData
--- a/src/spatialaudio/qaudioengine.cpp
+++ b/src/spatialaudio/qaudioengine.cpp
@@ -17,6 +17,9 @@
#include <QFile>
QT_BEGIN_NAMESPACE
+
+constexpr float QAudioEngine::DistanceScaleCentimeter;
+constexpr float QAudioEngine::DistanceScaleMeter;
// We'd like to have short buffer times, so the sound adjusts itself to changes
// quickly, but times below 100ms seem to give stuttering on macOS.
// It might be possible to set this value lower on other OSes.