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
qaudiodevice_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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
5#ifndef QAUDIODEVICEINFO_P_H
6#define QAUDIODEVICEINFO_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtMultimedia/qaudiodevice.h>
20#include <QtCore/private/qglobal_p.h>
21
23
24class Q_MULTIMEDIA_EXPORT QAudioDevicePrivate : public QSharedData
25{
26public:
34 bool isDefault = false;
35
38 int minimumSampleRate = 0;
39 int maximumSampleRate = 0;
40 int minimumChannelCount = 0;
41 int maximumChannelCount = 0;
42 QList<QAudioFormat::SampleFormat> supportedSampleFormats;
44
46 {
47 return id == other.id && mode == other.mode && isDefault == other.isDefault
48 && preferredFormat == other.preferredFormat && description == other.description
49 && minimumSampleRate == other.minimumSampleRate
50 && maximumSampleRate == other.maximumSampleRate
51 && minimumChannelCount == other.minimumChannelCount
52 && maximumChannelCount == other.maximumChannelCount
53 && supportedSampleFormats == other.supportedSampleFormats
54 && channelConfiguration == other.channelConfiguration;
55 }
56
57 QAudioDevice create() { return QAudioDevice(this); }
58};
59
61
62#endif // QAUDIODEVICEINFO_H
QAudioDevicePrivate(const QByteArray &i, QAudioDevice::Mode m)
QAudioDevice create()
QAudioFormat preferredFormat
QList< QAudioFormat::SampleFormat > supportedSampleFormats
virtual ~QAudioDevicePrivate()
The QAudioDevice class provides an information about audio devices and their functionality.
Mode
Describes the mode of this device.
The QAudioFormat class stores audio stream parameter information.
ChannelConfig
\variable QAudioFormat::NChannelPositions
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
Definition qshareddata.h:19
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLenum mode
const GLfloat * m
GLenum GLuint id
[7]
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Definition qrandom.cpp:1220
QSharedPointer< T > other(t)
[5]