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
qpipewire_audiodevice_p.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
QPIPEWIRE_AUDIODEVICE_P_H
5
#
define
QPIPEWIRE_AUDIODEVICE_P_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
/
qlist
.
h
>
19
#
include
<
QtMultimedia
/
qaudiodevice
.
h
>
20
#
include
<
QtMultimedia
/
private
/
qaudiodevice_p
.
h
>
21
22
#
include
"qpipewire_propertydict_p.h"
23
#
include
"qpipewire_spa_pod_support_p.h"
24
25
QT_BEGIN_NAMESPACE
26
27
namespace
QtPipeWire
{
28
29
class
Q_MULTIMEDIA_EXPORT
QPipewireAudioDevicePrivate
:
public
QAudioDevicePrivate
30
{
31
public
:
32
QPipewireAudioDevicePrivate
(
const
PwPropertyDict
&
nodeProperties
,
33
const
PwPropertyDict
&
deviceProperties
,
34
const
SpaObjectAudioFormat
&,
QAudioDevice
::
Mode
,
bool
isDefault
);
35
~
QPipewireAudioDevicePrivate
()
override
;
36
37
Q_DISABLE_COPY_MOVE
(
QPipewireAudioDevicePrivate
)
38
39
QByteArray
nodeName
()
const
{
return
m_nodeName
; }
40
41
private
:
42
void
setPreferredSamplingRate
(
int
);
43
void
setPreferredSamplingRate
(
QSpan
<
const
int
>);
44
void
setPreferredSamplingRate
(
const
SpaRange
<
int
> &);
45
46
void
setPreferredSampleFormats
(
spa_audio_format
);
47
void
setPreferredSampleFormats
(
spa_audio_iec958_codec
);
48
void
setPreferredSampleFormats
(
const
SpaEnum
<
spa_audio_format
> &);
49
50
QByteArray
m_sysfsPath
;
51
QByteArray
m_nodeName
;
52
53
std
::
optional
<
QList
<
spa_audio_channel
>>
m_channelPositions
;
54
};
55
56
}
// namespace QtPipeWire
57
58
QT_END_NAMESPACE
59
60
#
endif
// QPIPEWIRE_AUDIODEVICE_P_H
QtPipeWire::QPipewireAudioDevicePrivate
Definition
qpipewire_audiodevice_p.h:30
QPlatformGraphicsBufferHelper
\inmodule QtGui
QtPipeWire
Definition
qpipewire_async_support.cpp:10
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtmultimedia
src
multimedia
pipewire
qpipewire_audiodevice_p.h
Generated on
for Qt by
1.14.0