diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-06-16 09:21:35 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-06-16 09:21:35 +0200 |
commit | da35e256f5da8d93cef0ab1bed8ca3e8ccfe5a43 (patch) | |
tree | 6eafa4110806eb354f899cbd4fea2b826c9fdf2c /src/multimedia/platform/qplatformaudioinput_p.h | |
parent | 3287ad8656b700f245834f09458bc1613beb9757 (diff) | |
parent | fde5d6f7cce6118cac4ce7b92cd056225737917f (diff) |
Merge remote-tracking branch 'origin/dev' into 6.2
Change-Id: I0f29cdfa94948a39a895a7678bcfe3a631d2d4ed
Diffstat (limited to 'src/multimedia/platform/qplatformaudioinput_p.h')
-rw-r--r-- | src/multimedia/platform/qplatformaudioinput_p.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/multimedia/platform/qplatformaudioinput_p.h b/src/multimedia/platform/qplatformaudioinput_p.h new file mode 100644 index 000000000..c4e4334b3 --- /dev/null +++ b/src/multimedia/platform/qplatformaudioinput_p.h @@ -0,0 +1,79 @@ +/**************************************************************************** +** +** Copyright (C) 2021 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ +#ifndef QPLATFORMAUDIOINPUT_H +#define QPLATFORMAUDIOINPUT_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include <private/qtmultimediaglobal_p.h> +#include <qaudiodevice.h> + +QT_BEGIN_NAMESPACE + +class QAudioInput; + +class Q_MULTIMEDIA_EXPORT QPlatformAudioInput +{ +public: + QPlatformAudioInput(QAudioInput *qq) : q(qq) {} + virtual ~QPlatformAudioInput() {} + + virtual void setAudioDevice(const QAudioDevice &/*device*/) {} + virtual void setMuted(bool /*muted*/) {} + virtual void setVolume(float /*volume*/) {} + + QAudioInput *q = nullptr; + QAudioDevice device; + float volume = 1.; + bool muted = false; +}; + +QT_END_NAMESPACE + + +#endif // QPLATFORMAUDIOINPUT_H |