API reference

MetaXRAudioRoomAcousticProperties Class

Extends MonoBehaviour
Class that provides easy control over the shoebox room simulation.
One of these classes should be present in any scene you wish the control the parameters of shoebox reverberation. Multiple instantiations of this class within one scene will result in undefined behavior.

Member Enumerations

Enumeration MaterialPreset

Enum representing material presets.
See Also
MetaXRAudioRoomAcousticProperties::SetWallMaterialPreset
AcousticTile
= 0
Brick
No description available
BrickPainted
No description available
Cardboard
No description available
Carpet
No description available
CarpetHeavy
No description available
CarpetHeavyPadded
No description available
CeramicTile
No description available
Concrete
No description available
ConcreteRough
No description available
ConcreteBlock
No description available
ConcreteBlockPainted
No description available
Curtain
No description available
Foliage
No description available
Glass
No description available
GlassHeavy
No description available
Grass
No description available
Gravel
No description available
GypsumBoard
No description available
Marble
No description available
Mud
No description available
PlasterOnBrick
No description available
PlasterOnConcreteBlock
No description available
Rubber
No description available
Soil
No description available
SoundProof
No description available
Snow
No description available
Steel
No description available
Stone
No description available
Vent
No description available
Water
No description available
WoodThin
No description available
WoodThick
No description available
WoodFloor
No description available
WoodOnConcrete
No description available
MetaDefault
No description available

Fields

Whether to center the room model on the listener or position its center in world space.
If set to false, the room model's center will be placed at the transform position.
Width of the room, in meters.
Height of the room, in meters.
Depth of the room, in meters.
Material preset of the left wall of the room model.
Material preset of the right wall of the room model.
Material preset of the ceiling of the room model.
Material preset of the floor of the room model.
Material preset of the front wall of the room model.
Material preset of the back wall of the room model.
Current room clutter factor.
This is a simplified interface to the native, frequency-dependent clutter factor. The singular value represented here is transformed into a the frequency-dependent clutter factor of MetaXRAudioNativeInterface::NativeInterface::SetRoomClutterFactor through means of the following formula:
factor = clutterFactor;
for (int band = kAudioBandCount - 1; band >= 0; --band)
{
    clutterFactorBands[band] = factor;
    factor *= 0.5f; // clutter has less impact on low frequencies
}
Did you find this page helpful?
Thumbs up icon
Thumbs down icon