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 <QtQGstreamerMediaPluginImpl/private/qgst_handle_types_p.h>
27
28#include <gst/gst.h>
29
30QT_BEGIN_NAMESPACE
31
32class QGStreamerAudioDeviceInfo : public QAudioDevicePrivate
33{
34public:
35 QGStreamerAudioDeviceInfo(GstDevice *gstDevice, const QByteArray &device, QAudioDevice::Mode mode);
36
37 QGstDeviceHandle gstDevice;
38};
39
40class QGStreamerCustomAudioDeviceInfo : public QAudioDevicePrivate
41{
42public:
43 QGStreamerCustomAudioDeviceInfo(const QByteArray &gstreamerPipeline, QAudioDevice::Mode mode);
44};
45
46bool isCustomAudioDevice(const QAudioDevicePrivate *device);
47bool isCustomAudioDevice(const QAudioDevice &device);
48
49QAudioDevice qMakeCustomGStreamerAudioInput(const QByteArray &gstreamerPipeline);
50QAudioDevice qMakeCustomGStreamerAudioOutput(const QByteArray &gstreamerPipeline);
51
52QT_END_NAMESPACE
53
54#endif
55
56

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtmultimedia/src/plugins/multimedia/gstreamer/audio/qgstreameraudiodevice_p.h