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