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
qgstreameraudiooutput_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 QGSTREAMERAUDIOOUTPUT_P_H
5#define QGSTREAMERAUDIOOUTPUT_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/qplatformaudiooutput_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<QPlatformAudioOutput *> create(QAudioOutput *parent);
36
37 void setAudioDevice(const QAudioDevice &) override;
38 void setVolume(float) override;
39 void setMuted(bool) override;
40
41 QGstElement gstElement() const { return gstAudioOutput; }
42
43private:
45 QGstElement autoaudiosink, QAudioOutput *parent);
46
47 QGstElement createGstElement();
48
49 QAudioDevice m_audioOutput;
50
51 // Gst elements
52 QGstPipeline gstPipeline;
53 QGstBin gstAudioOutput;
54
55 QGstElement audioQueue;
56 QGstElement audioConvert;
57 QGstElement audioResample;
58 QGstElement audioVolume;
59 QGstElement audioSink;
60};
61
63
64#endif
The QAudioDevice class provides an information about audio devices and their functionality.
\qmltype AudioOutput \instantiates QAudioOutput
static QMaybe< QPlatformAudioOutput * > create(QAudioOutput *parent)
void setAudioDevice(const QAudioDevice &) override
void setVolume(float) override
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.