|Import Statement:||import QtQuick3D.SpatialAudio|
Defines a room for the spatial audio engine.
If the listener is inside a room, first order sound reflections and reverb matching the rooms properties will get applied to the sound field.
A room is always square and defined by its center position, its orientation and dimensions. Each of the 6 walls of the room can be made of different materials that will contribute to the computed reflections and reverb that the listener will experience while being inside the room.
If multiple rooms cover the same position, the engine will use the room with the smallest volume.
backMaterial : AudioRoom::Material
ceilingMaterial : AudioRoom::Material
floorMaterial : AudioRoom::Material
frontMaterial : AudioRoom::Material
leftMaterial : AudioRoom::Material
rightMaterial : AudioRoom::Material
Sets the material to use for the different sides of the room. Properties correlate to coordinates as follows:
Valid values for the material are:
|Transparent||The side of the room is open and won't contribute to reflections or reverb.|
|AcousticCeilingTiles||Acoustic tiles that suppress most reflections and reverb.|
|BrickBare||A bare brick wall.|
|BrickPainted||A painted brick wall.|
|ConcreteBlockCoarse||A raw concrete wall|
|ConcreteBlockPainted||A painted concrete wall|
|CurtainHeavy||A heavy curtain. Will mostly reflect low frequencies|
|FiberGlassInsulation||Fiber glass insulation. Only reflects very low frequencies|
|GlassThin||A thin glass wall|
|GlassThick||A thick glass wall|
|LinoleumOnConcrete||A Linoleum floor|
|Marble||A marble floor|
|ParquetOnConcrete||Parquet wooden floor on concrete|
|PolishedConcreteOrTile||Polished concrete or tiles|
|WaterOrIceSurface||Water or ice|
|WoodCeiling||A wooden ceiling|
|Uniform||Artificial material giving uniform reflections on all frequencies|
dimensions : vector3D
Defines the dimensions of the room in 3D space. Units are in centimeters by default.
See also QtQuick3D::Node::position.
reflectionGain : float
A gain factor for reflections generated in this room. A value from 0 to 1 will dampen reflections, while a value larger than 1 will apply a gain to reflections, making them louder.
The default is 1, a factor of 0 disables reflections. Negative values are mapped to 0.
reverbBrightness : float
A brightness factor to be applied to the generated reverb. A positive value will increase reverb for higher frequencies and dampen lower frequencies, a negative value does the reverse.
The default is 0.
reverbGain : float
A gain factor for reverb generated in this room. A value from 0 to 1 will dampen reverb, while a value larger than 1 will apply a gain to the reverb, making it louder.
The default is 1, a factor of 0 disables reverb. Negative values are mapped to 0.
reverbTime : float
A factor to be applies to all reverb timings generated for this room. Larger values will lead to longer reverb timings, making the room sound larger.
The default is 1. Negative values are mapped to 0.