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
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
26QT_BEGIN_NAMESPACE
27
28class QAudioRoomPrivate : public QObjectPrivate
29{
30public:
31 static QAudioRoomPrivate *get(QAudioRoom *r) { return r->d_func(); }
32
33 QAudioEngine *engine = nullptr;
34 vraudio::RoomProperties roomProperties;
35 bool dirty = true;
36
37 vraudio::ReverbProperties reverb;
38 vraudio::ReflectionProperties reflections;
39
40 std::array<float, 6> m_wallOcclusion = { -1.f, -1.f, -1.f, -1.f, -1.f, -1.f };
41 std::array<float, 6> m_wallDampening = { -1.f, -1.f, -1.f, -1.f, -1.f, -1.f };
42
43 float wallOcclusion(QAudioRoom::Wall wall) const;
44 float wallDampening(QAudioRoom::Wall wall) const;
45
46 void update();
47};
48
50
51#endif
Combined button and popup list for selecting options.
QQuaternion toQuaternion(QSpan< const float, 4 > f)
QVector3D toVector(QSpan< const float, 3 > f)
void toFloats(QVector3D v, QSpan< float, 3 > f)