diff options
author | Artem Dyomin <artem.dyomin@qt.io> | 2022-12-12 14:38:47 +0100 |
---|---|---|
committer | Artem Dyomin <artem.dyomin@qt.io> | 2022-12-13 12:01:44 +0000 |
commit | 49e1615c98816d8e19fd364a493478d1d6e42eb1 (patch) | |
tree | 9cefb6d71bb813aa5865eb0f7bf73dd2081078fa /src/multimedia/audio/qaudiosystem.cpp | |
parent | a3c36e681d6036f053fed01526ed5db4ba6d713a (diff) | |
download | qtmultimedia-49e1615c98816d8e19fd364a493478d1d6e42eb1.tar.gz |
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.cpp | 19 |
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" |