blob: b7aa68f1dee12b668d41b7aeebfbe4ddf4d8304f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QPLATFORMMEDIADEVICES_H
#define QPLATFORMMEDIADEVICES_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 <qlist.h>
#include <qobject.h>
#include <mutex>
#include <memory>
QT_BEGIN_NAMESPACE
class QMediaDevices;
class QAudioDevice;
class QCameraDevice;
class QPlatformAudioSource;
class QPlatformAudioSink;
class QAudioFormat;
class QPlatformMediaIntegration;
class Q_MULTIMEDIA_EXPORT QPlatformMediaDevices : public QObject
{
Q_OBJECT
public:
QPlatformMediaDevices();
~QPlatformMediaDevices() override;
static std::unique_ptr<QPlatformMediaDevices> create();
virtual QList<QAudioDevice> audioInputs() const;
virtual QList<QAudioDevice> audioOutputs() const;
virtual QPlatformAudioSource *createAudioSource(const QAudioDevice &, QObject *parent);
virtual QPlatformAudioSink *createAudioSink(const QAudioDevice &, QObject *parent);
QPlatformAudioSource *audioInputDevice(const QAudioFormat &format,
const QAudioDevice &deviceInfo, QObject *parent);
QPlatformAudioSink *audioOutputDevice(const QAudioFormat &format,
const QAudioDevice &deviceInfo, QObject *parent);
virtual void prepareAudio();
void initVideoDevicesConnection();
Q_SIGNALS:
void audioInputsChanged();
void audioOutputsChanged();
void videoInputsChanged();
};
QT_END_NAMESPACE
#endif // QPLATFORMMEDIADEVICES_H
|