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.
AcousticTile
= 0
Brick
BrickPainted
Cardboard
Carpet
CarpetHeavy
CarpetHeavyPadded
CeramicTile
Concrete
ConcreteRough
ConcreteBlock
ConcreteBlockPainted
Curtain
Foliage
Glass
GlassHeavy
Grass
Gravel
GypsumBoard
Marble
Mud
PlasterOnBrick
PlasterOnConcreteBlock
Rubber
Soil
SoundProof
Snow
Steel
Stone
Vent
Water
WoodThin
WoodThick
WoodFloor
WoodOnConcrete
MetaDefault

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.
See Also:
Material preset of the right wall of the room model.
See Also:
Material preset of the ceiling of the room model.
See Also:
Material preset of the floor of the room model.
See Also:
Material preset of the front wall of the room model.
See Also:
Material preset of the back wall of the room model.
See Also:
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