43} occlusionAndDampening[] = {
140 ep->removeRoom(
this);
200 pos *= ep->distanceScale;
212 pos /= ep->distanceScale;
227 dim *= ep->distanceScale;
239 dim /= ep->distanceScale;
278 static_assert(vraudio::kTransparent == int(
Transparent));
282 d->
roomProperties.material_names[int(wall)] = vraudio::MaterialName(
int(material));
399#include "moc_qaudioroom.cpp"
static QAudioEnginePrivate * get(QAudioEngine *engine)
vraudio::ReflectionProperties reflections
vraudio::RoomProperties roomProperties
float wallDampening(QAudioRoom::Wall wall) const
float wallOcclusion(QAudioRoom::Wall wall) const
vraudio::ReverbProperties reverb
float reverbGain
A gain factor for reverb generated in this room.
float reverbBrightness
A brightness factor to be applied to the generated reverb.
QAudioRoom(QAudioEngine *engine)
Constructs a QAudioRoom for engine.
QQuaternion rotation
Defines the orientation of the room in 3D space.
void setReverbGain(float factor)
void setRotation(const QQuaternion &q)
void wallsChanged()
Signals when the wall material changes.
void setDimensions(QVector3D dim)
void reverbBrightnessChanged()
void reflectionGainChanged()
Material
Defines different materials that can be applied to the different walls of the room.
void setWallMaterial(Wall wall, Material material)
Sets wall to material.
void setReverbTime(float factor)
QVector3D position
Defines the position of the center of the room in 3D space.
float reverbTime
A factor to be applies to all reverb timings generated for this room.
Wall
An enum defining the 6 walls of the room.
void setPosition(QVector3D pos)
void setReverbBrightness(float factor)
~QAudioRoom()
Destroys the room.
void setReflectionGain(float factor)
QVector3D dimensions
Defines the dimensions of the room in 3D space.
float reflectionGain
A gain factor for reflections generated in this room.
Material wallMaterial(Wall wall) const
returns the material being used for wall.
The QQuaternion class represents a quaternion consisting of a vector and scalar.
The QVector3D class represents a vector or vertex in 3D space.
Combined button and popup list for selecting options.
QVector3D toVector(const float *f)
void toFloats(const QVector3D &v, float *f)
QQuaternion toQuaternion(const float *f)
GLsizei const GLfloat * v
[13]
GLdouble GLdouble GLdouble GLdouble q