Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qaudioroom_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-3.0-only
3
#
ifndef
QAUDIOROOM_P_H
4
#
define
QAUDIOROOM_P_H
5
6
// W A R N I N G
7
// -------------
8
//
9
// This file is not part of the Qt API. It exists purely as an
10
// implementation detail. This header file may change from version to
11
// version without notice, or even be removed.
12
//
13
// We mean it.
14
//
15
16
#
include
<
QtSpatialAudio
/
qaudioroom
.
h
>
17
#
include
<
QtSpatialAudio
/
private
/
qtspatialaudioglobal_p
.
h
>
18
#
include
<
QtSpatialAudio
/
private
/
qaudioengine_p
.
h
>
19
#
include
<
QtCore
/
private
/
qobject_p
.
h
>
20
21
#
include
<
resonance_audio
.
h
>
22
#
include
"platforms/common/room_properties.h"
23
24
#
include
<
array
>
25
26
QT_BEGIN_NAMESPACE
27
28
class
QAudioRoomPrivate :
public
QObjectPrivate
29
{
30
public
:
31
static
QAudioRoomPrivate *get(QAudioRoom *r) {
return
r->d_func(); }
32
33
QAudioEngine *engine =
nullptr
;
34
vraudio::RoomProperties roomProperties;
35
void
requestUpdate();
36
37
bool
dirty{};
38
vraudio::ReverbProperties reverb;
39
vraudio::ReflectionProperties reflections;
40
41
std::array<
float
, 6> m_wallOcclusion = { -1.f, -1.f, -1.f, -1.f, -1.f, -1.f };
42
std::array<
float
, 6> m_wallDampening = { -1.f, -1.f, -1.f, -1.f, -1.f, -1.f };
43
44
float
wallOcclusion(QAudioRoom::Wall wall)
const
;
45
float
wallDampening(QAudioRoom::Wall wall)
const
;
46
47
void
update();
48
};
49
50
QT_END_NAMESPACE
51
52
#
endif
QAudioRoom
\inmodule QtSpatialAudio
Definition
qaudioroom.h:18
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_BEGIN_NAMESPACE::toQuaternion
QQuaternion toQuaternion(QSpan< const float, 4 > f)
Definition
qaudioroom.cpp:27
QT_BEGIN_NAMESPACE::toVector
QVector3D toVector(QSpan< const float, 3 > f)
Definition
qaudioroom.cpp:15
QT_BEGIN_NAMESPACE::toFloats
void toFloats(QVector3D v, QSpan< float, 3 > f)
Definition
qaudioroom.cpp:20
qtmultimedia
src
spatialaudio
qaudioroom_p.h
Generated on
for Qt by
1.18.0