summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio/qaudiosystem.cpp
diff options
context:
space:
mode:
authorArtem Dyomin <artem.dyomin@qt.io>2022-12-12 14:38:47 +0100
committerArtem Dyomin <artem.dyomin@qt.io>2022-12-13 12:01:44 +0000
commit49e1615c98816d8e19fd364a493478d1d6e42eb1 (patch)
tree9cefb6d71bb813aa5865eb0f7bf73dd2081078fa /src/multimedia/audio/qaudiosystem.cpp
parenta3c36e681d6036f053fed01526ed5db4ba6d713a (diff)
Include moc_*.cpp files in main QtMM code
The reason of the refactoring is following the common approach that leads to reducing compilation time and binary size. - logic hasn't been touched - some headers have been decoupled into header and cpp - the same refactorings of examples, tests, plugins are coming in the next commits Task-number: QTBUG-103290 Pick-to: 6.5 6.4 Change-Id: I6716cef5116769230c36e8d584d9ba6ec40aabb2 Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/multimedia/audio/qaudiosystem.cpp')
-rw-r--r--src/multimedia/audio/qaudiosystem.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/multimedia/audio/qaudiosystem.cpp b/src/multimedia/audio/qaudiosystem.cpp
new file mode 100644
index 000000000..ef7552492
--- /dev/null
+++ b/src/multimedia/audio/qaudiosystem.cpp
@@ -0,0 +1,19 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#include "qaudiosystem_p.h"
+
+QT_BEGIN_NAMESPACE
+
+QPlatformAudioSink::QPlatformAudioSink(QObject *parent) : QObject(parent) { }
+
+qreal QPlatformAudioSink::volume() const
+{
+ return 1.0;
+}
+
+QPlatformAudioSource::QPlatformAudioSource(QObject *parent) : QObject(parent) { }
+
+QT_END_NAMESPACE
+
+#include "moc_qaudiosystem_p.cpp"