Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgstreameraudioinput_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QGSTREAMERAUDIOINPUT_P_H
5#define QGSTREAMERAUDIOINPUT_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qobject.h>
19#include <QtMultimedia/private/qmultimediautils_p.h>
20#include <QtMultimedia/private/qplatformaudioinput_p.h>
21#include <QtMultimedia/private/qtmultimediaglobal_p.h>
22#include <QtMultimedia/qaudiodevice.h>
23
24#include <common/qgst_p.h>
26
28
29class QAudioDevice;
30
32{
33public:
34 static QMaybe<QPlatformAudioInput *> create(QAudioInput *parent);
36
39
40 void setAudioDevice(const QAudioDevice &) override;
41 void setVolume(float) override;
42 void setMuted(bool) override;
43
44 QGstElement gstElement() const { return gstAudioInput; }
45
46private:
48
49 QGstElement createGstElement();
50
51 QAudioDevice m_audioDevice;
52
53 // Gst elements
54 QGstBin gstAudioInput;
55
56 QGstElement audioSrc;
57 QGstElement audioVolume;
58};
59
61
62#endif
The QAudioDevice class provides an information about audio devices and their functionality.
\qmltype AudioInput \instantiates QAudioInput
Definition qaudioinput.h:19
QAudioDevice audioInput() const
void setMuted(bool) override
void setAudioDevice(const QAudioDevice &) override
void setVolume(float) override
static QMaybe< QPlatformAudioInput * > create(QAudioInput *parent)
bool setAudioInput(const QAudioDevice &)
QGstElement gstElement() const
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
Combined button and popup list for selecting options.