Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquick3daudioroom.cpp
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
5#include <qaudioroom.h>
6
8
43
45{
46 delete m_room;
47}
48
58{
59 m_room->setDimensions(dim);
60}
61
63{
64 return m_room->dimensions();
65}
66
126
131
136
141
146
151
156
161
166
171
176
181
193{
194 m_room->setReflectionGain(factor);
195}
196
198{
199 return m_room->reflectionGain();
200}
201
213{
214 m_room->setReverbGain(factor);
215}
216
218{
219 return m_room->reverbGain();
220}
221
232{
233 m_room->setReverbTime(factor);
234}
235
237{
238 return m_room->reverbTime();
239}
240
251{
252 m_room->setReverbBrightness(factor);
253}
254
256{
257 return m_room->reverbBrightness();
258}
259
264
269
\inmodule QtSpatialAudio
Definition qaudioroom.h:17
void reverbTimeChanged()
float reverbGain
A gain factor for reverb generated in this room.
Definition qaudioroom.h:23
float reverbBrightness
A brightness factor to be applied to the generated reverb.
Definition qaudioroom.h:25
void setReverbGain(float factor)
void setRotation(const QQuaternion &q)
void reverbGainChanged()
void wallsChanged()
Signals when the wall material changes.
void setDimensions(QVector3D dim)
void rotationChanged()
void reverbBrightnessChanged()
void reflectionGainChanged()
Material
Defines different materials that can be applied to the different walls of the room.
Definition qaudioroom.h:30
void setWallMaterial(Wall wall, Material material)
Sets wall to material.
void setReverbTime(float factor)
float reverbTime
A factor to be applies to all reverb timings generated for this room.
Definition qaudioroom.h:24
void setPosition(QVector3D pos)
void setReverbBrightness(float factor)
void dimensionsChanged()
void setReflectionGain(float factor)
QVector3D dimensions
Defines the dimensions of the room in 3D space.
Definition qaudioroom.h:20
float reflectionGain
A gain factor for reflections generated in this room.
Definition qaudioroom.h:22
Material wallMaterial(Wall wall) const
returns the material being used for wall.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
Definition qobject.cpp:2960
static QAudioEngine * getEngine()
void setReflectionGain(float factor)
\qmlproperty float AudioRoom::reflectionGain
void reverbTimeChanged()
void setReverbGain(float factor)
\qmlproperty float AudioRoom::reverbGain
void reverbGainChanged()
void reflectionGainChanged()
void setReverbTime(float factor)
\qmlproperty float AudioRoom::reverbTime
QQuick3DAudioRoom()
\qmltype AudioRoom \inqmlmodule QtQuick3D.SpatialAudio
void reverbBrightnessChanged()
void setFloorMaterial(Material material)
void setRightMaterial(Material material)
void dimensionsChanged()
void setFrontMaterial(Material material)
void setCeilingMaterial(Material material)
void setReverbBrightness(float factor)
\qmlproperty float AudioRoom::reverbBrightness
void setDimensions(QVector3D pos)
\qmlproperty vector3D AudioRoom::dimensions
void setBackMaterial(Material material)
void setLeftMaterial(Material material)
\qmlproperty AudioRoom::Material AudioRoom::leftMaterial \qmlproperty AudioRoom::Material AudioRoom::...
QVector3D scenePosition
void sceneRotationChanged()
void scenePositionChanged()
QQuaternion sceneRotation
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.