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
qplatformmediadevices_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 QPLATFORMMEDIADEVICES_H
5#define QPLATFORMMEDIADEVICES_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 <private/qtmultimediaglobal_p.h>
19#include <qlist.h>
20#include <qobject.h>
21#include <memory>
22
24
25class QAudioDevice;
28class QAudioFormat;
29
30class Q_MULTIMEDIA_EXPORT QPlatformMediaDevices : public QObject
31{
33public:
36
37 static std::unique_ptr<QPlatformMediaDevices> create();
38
39 virtual QList<QAudioDevice> audioInputs() const;
40 virtual QList<QAudioDevice> audioOutputs() const;
41
42 virtual QPlatformAudioSource *createAudioSource(const QAudioDevice &, QObject *parent);
43 virtual QPlatformAudioSink *createAudioSink(const QAudioDevice &, QObject *parent);
44
45 QPlatformAudioSource *audioInputDevice(const QAudioFormat &format,
46 const QAudioDevice &deviceInfo, QObject *parent);
47 QPlatformAudioSink *audioOutputDevice(const QAudioFormat &format,
48 const QAudioDevice &deviceInfo, QObject *parent);
49
50 virtual void prepareAudio();
51
52 void initVideoDevicesConnection();
53
58};
59
61
62
63#endif // QPLATFORMMEDIADEVICES_H
The QAudioDevice class provides an information about audio devices and their functionality.
The QAudioFormat class stores audio stream parameter information.
\inmodule QtCore
Definition qobject.h:103
~QPlatformMediaDevices() override
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format
#define Q_OBJECT
#define Q_SIGNALS
view create()