![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
This is the main Resonance Audio class that communicates with the FMOD Unity integration. Native functions of the system can only be called through this class to preserve the internal system functionality.
Classes | |
struct | RoomProperties |
Static Public Member Functions | |
static void | UpdateAudioRoom (FmodResonanceAudioRoom room, bool roomEnabled) |
static bool | IsListenerInsideRoom (FmodResonanceAudioRoom room) |
Returns whether the listener is currently inside the given |room| boundaries. | |
Static Public Attributes | |
const float | MaxGainDb = 24.0f |
Maximum allowed gain value in decibels. | |
const float | MinGainDb = -24.0f |
Minimum allowed gain value in decibels. | |
const float | MaxReverbBrightness = 1.0f |
Maximum allowed reverb brightness modifier value. | |
const float | MinReverbBrightness = -1.0f |
Minimum allowed reverb brightness modifier value. | |
const float | MaxReverbTime = 3.0f |
Maximum allowed reverb time modifier value. | |
const float | MaxReflectivity = 2.0f |
Maximum allowed reflectivity multiplier of a room surface material. | |
Properties | |
static FMOD.DSP | ListenerPlugin [get] |
Static Private Member Functions | |
static float | ConvertAmplitudeFromDb (float db) |
static void | ConvertAudioTransformFromUnity (ref Vector3 position, ref Quaternion rotation) |
static byte[] | GetBytes (IntPtr ptr, int length) |
static RoomProperties | GetRoomProperties (FmodResonanceAudioRoom room) |
static FMOD.DSP | Initialize () |
Static Private Attributes | |
static readonly Matrix4x4 | flipZ = Matrix4x4.Scale(new Vector3(1, 1, -1)) |
static readonly string | listenerPluginName = "Resonance Audio Listener" |
static readonly int | roomPropertiesSize = Marshal.SizeOf<RoomProperties>() |
static readonly int | roomPropertiesIndex = 1 |
static Bounds | bounds = new Bounds(Vector3.zero, Vector3.zero) |
static List< FmodResonanceAudioRoom > | enabledRooms = new List<FmodResonanceAudioRoom>() |
static FMOD.VECTOR | listenerPositionFmod = new FMOD.VECTOR() |
static FMOD.DSP | listenerPlugin |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
Returns whether the listener is currently inside the given |room| boundaries.
|
static |
Updates the room effects of the environment with given |room| properties.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
Maximum allowed gain value in decibels.
|
static |
Maximum allowed reflectivity multiplier of a room surface material.
|
static |
Maximum allowed reverb brightness modifier value.
|
static |
Maximum allowed reverb time modifier value.
|
static |
Minimum allowed gain value in decibels.
|
static |
Minimum allowed reverb brightness modifier value.
|
staticprivate |
|
staticprivate |
|
staticgetprivate |