| 1 | // Copyright (C) 2016 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 QGSTREAMERAUDIODEVICEINFO_H | 
|---|
| 5 | #define QGSTREAMERAUDIODEVICEINFO_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/qbytearray.h> | 
|---|
| 19 | #include <QtCore/qstringlist.h> | 
|---|
| 20 | #include <QtCore/qlist.h> | 
|---|
| 21 |  | 
|---|
| 22 | #include <QtMultimedia/qaudio.h> | 
|---|
| 23 | #include <QtMultimedia/qaudiodevice.h> | 
|---|
| 24 | #include <QtMultimedia/private/qaudiodevice_p.h> | 
|---|
| 25 |  | 
|---|
| 26 | #include <QtGstreamerMediaPluginImpl/private/qgst_handle_types_p.h> | 
|---|
| 27 |  | 
|---|
| 28 | #include <gst/gst.h> | 
|---|
| 29 |  | 
|---|
| 30 | QT_BEGIN_NAMESPACE | 
|---|
| 31 |  | 
|---|
| 32 | class QGStreamerCustomAudioDeviceInfo : public QAudioDevicePrivate | 
|---|
| 33 | { | 
|---|
| 34 | public: | 
|---|
| 35 | QGStreamerCustomAudioDeviceInfo(const QByteArray &gstreamerPipeline, QAudioDevice::Mode mode); | 
|---|
| 36 | }; | 
|---|
| 37 |  | 
|---|
| 38 | bool isCustomAudioDevice(const QAudioDevicePrivate *device); | 
|---|
| 39 | bool isCustomAudioDevice(const QAudioDevice &device); | 
|---|
| 40 |  | 
|---|
| 41 | QAudioDevice qMakeCustomGStreamerAudioInput(const QByteArray &gstreamerPipeline); | 
|---|
| 42 | QAudioDevice qMakeCustomGStreamerAudioOutput(const QByteArray &gstreamerPipeline); | 
|---|
| 43 |  | 
|---|
| 44 | QT_END_NAMESPACE | 
|---|
| 45 |  | 
|---|
| 46 | #endif | 
|---|
| 47 |  | 
|---|
| 48 |  | 
|---|