Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsaudiodevice_p.h
Go to the documentation of this file.
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
//
5
// W A R N I N G
6
// -------------
7
//
8
// This file is not part of the Qt API. It exists for the convenience
9
// of other Qt classes. This header file may change from version to
10
// version without notice, or even be removed.
11
//
12
// We mean it.
13
//
14
15
#
ifndef
QWINDOWSAUDIODEVICE_H
16
#
define
QWINDOWSAUDIODEVICE_H
17
18
#
include
<
QtCore
/
qbytearray
.
h
>
19
#
include
<
QtCore
/
qstring
.
h
>
20
#
include
<
QtCore
/
private
/
qcomptr_p
.
h
>
21
22
#
include
<
QtMultimedia
/
qaudiodevice
.
h
>
23
#
include
<
QtMultimedia
/
private
/
qaudioformat_p
.
h
>
24
#
include
<
QtMultimedia
/
private
/
qaudiosystem_p
.
h
>
25
#
include
<
QtMultimedia
/
private
/
qaudiodevice_p
.
h
>
26
27
struct
IMMDevice;
28
29
QT_BEGIN_NAMESPACE
30
31
class
QWindowsAudioDevice :
public
QAudioDevicePrivate
32
{
33
public
:
34
QWindowsAudioDevice(QByteArray deviceId, ComPtr<IMMDevice> immdev, QString description,
35
QAudioDevice::Mode mode);
36
~QWindowsAudioDevice();
37
38
ComPtr<IMMDevice> open()
const
;
39
40
std::pair<
int
,
int
> m_probedChannelCountRange{ 1, 2 };
// fallback: mono/stereo
41
std::pair<
int
,
int
> m_probedSampleRateRange{
42
QtMultimediaPrivate::allSupportedSampleRates.front(),
43
QtMultimediaPrivate::allSupportedSampleRates.back(),
44
};
// fallback: full range
45
};
46
47
QT_END_NAMESPACE
48
49
#
endif
// QWINDOWSAUDIODEVICE_H
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtmultimedia
src
multimedia
windows
qwindowsaudiodevice_p.h
Generated on
for Qt by
1.14.0