API reference

FMODPluginInterface Class

Fields

Name of the binary this interface wraps.
This value can be used in [DllImport(binaryName)] decorators and tells Unity what the binary name is for the FMOD plug-in.

Properties

IntPtr context[Get]

Member Functions

Get the handle to the current context, creating one if necessary.
Note that Unity's editor, player, and standalone builds will have different contexts.
Parameters
context
The returned handle to the context.
Returns
Returns an ovrResult indicating success or failure.
IntPtr ovrAudio_GetVersion
( out int Major,
out int Minor,
out int Patch )
Explicitly set the reflection model.
Parameters
Model[in]
The reflection model to use (default is Automatic)
See Also
AcousticModel
Reset the reverb and cut off reverb tails. It might be useful to call this function while changing scenes in a game, to prevent reverb from the previous scene from becoming audible when entering the new scene.
Parameters
feature
specific property to query
enabled
bool specifying if the feature should be enabled
Returns
Returns an ovrResult indicating success or failure
Turn on and off specific features of the library.
Parameters
feature
specific property to query
enabled
bool specifying if the feature should be enabled
Returns
Returns an ovrResult indicating success or failure
int SetEnabled
( EnableFlagInternal feature,
bool enabled )
Create a geometry object.
Parameters
geometry
A pointer to the created geometry object
Returns
Returns an ovrResult indicating success or failure
Destroy a geometry object.
Parameters
geometry
A pointer to the geometry object that should be destroyed
Returns
Returns an ovrResult indicating success or failure
Set the properties of a geometry object.
Parameters
geometry
A pointer to the geometry object
flag
The property about the geometry to be set
enabled
bool specifying if the feature should be enabled
Returns
Returns an ovrResult indicating success or failure
Bake mesh data into a geometry object.
Parameters
geometry
A pointer to the geometry object where the mesh data is baked
vertices
An array of vertices that describe the mesh
vertexCount
The number of vertices in the vertices array
indices
An array of integers that describe the mesh
indexCount
The number of integers in the indices array
groups
An array of mesh group data
groupCount
The number of mesh groups in the groups array
Returns
Returns an ovrResult indicating success or failure
Bake mesh data into a geometry object with simplification flags.
Parameters
geometry
A pointer to the geometry object where the mesh data is baked
vertices
An array of vertices that describe the mesh
vertexCount
The number of vertices in the vertices array
indices
An array of integers that describe the mesh
indexCount
The number of integers in the indices array
groups
An array of mesh group data
groupCount
The number of mesh groups in the groups array
simplification
A struct containing flags for mesh simplification
Returns
Returns an ovrResult indicating success or failure
Set the transform of a geometry object.
Parameters
geometry
A pointer to the geometry object
matrix
A 4x4 matrix that contains the transform to apply
Returns
Returns an ovrResult indicating success or failure
Get the transform of a geometry object.
Parameters
geometry
A pointer to the geometry object
matrix
A 4x4 matrix that contains the transform currently applied to the geometry
Returns
Returns an ovrResult indicating success or failure
Write a geometry object into a .xrageo file.
Parameters
geometry
A pointer to the geometry object to be written
filePath
A fully qualified path to which the output file should be written
Returns
Returns an ovrResult indicating success or failure
Read in baked geometry from a .xrageo file into a geometry object.
Parameters
geometry
A pointer to the geometry object where the file data will be read
filePath
A fully qualified path to the .xrageo file that should be read
Returns
Returns an ovrResult indicating success or failure
Read in geometry data as raw data input stored in an array. This allows alternate file reading methods.
Parameters
geometry
A pointer to the geometry object where the file data will be read
data
A pointer to the raw data that should be read
dataLength
The number of bytes in the raw data
Returns
Returns an ovrResult indicating success or failure
Save the mesh data of a geometry object into an .obj file.
Parameters
geometry
A pointer to the geometry object where the mesh data is baked
filePath
A fully qualified path to which the output file should be written
Returns
Returns an ovrResult indicating success or failure
Get the mesh information that is currently saved to a geometry object.
Parameters
geometry
A pointer to the geometry object where the mesh data is baked
vertices
An array of vertices that describe the mesh
indices
An array of integers that describe the mesh
materialIndices
An array of integers that describe the materials
Returns
Returns an ovrResult indicating success or failure
Create a new material object.
Parameters
material
A pointer to the newly created material object
Returns
Returns an ovrResult indicating success or failure
Destroy a material object.
Parameters
material
A pointer to the material object to be destroyed
Returns
Returns an ovrResult indicating success or failure
Set the value of a material property at the given frequency.
Parameters
material
A pointer to the material object
property
The material property to set
frequency
The frequency to set the value at
value
The desired value of the material property at the given frequency
Returns
Returns an ovrResult indicating success or failure
Get the value of a material property at the given frequency.
Parameters
material
A pointer to the material object
property
The material property to get
frequency
The frequency to get the value at
value
The returned material property at the given frequency
Returns
Returns an ovrResult indicating success or failure
Remove all the set values for a material property.
Parameters
material
A pointer to the material object
property
The material property to get
Returns
Returns an ovrResult indicating success or failure
Create a new Acoustic Map object.
Parameters
sceneIR
A pointer to the newly created Acoustic Map object
Returns
Returns an ovrResult indicating success or failure
Destroy an Acoustic Map object.
Parameters
sceneIR
A pointer to the Acoustic Map object to be destroyed
Returns
Returns an ovrResult indicating success or failure
Set an Acoustic Map object to be enabled or disabled.
Parameters
sceneIR
A pointer to the Acoustic Map object
enabled
bool specifying if the Acoustic Map should be enabled or disabled
Returns
Returns an ovrResult indicating success or failure
Get whether an Acoustic Map object is enabled or disabled.
Parameters
sceneIR
A pointer to the Acoustic Map object
enabled
bool specifying if the Acoustic Map is be enabled or disabled
Returns
Returns an ovrResult indicating success or failure
Get the current computation status of an Acoustic Map object.
Parameters
sceneIR
A pointer to the Acoustic Map object
status
The current computation status of the Acoustic Map object
Returns
Returns an ovrResult indicating success or failure
See Also
AcousticMapStatus
Generate the default values for the parameters of an Acoustic Map object.
Parameters
parameters
The initialized parameters with default values
Returns
Returns an ovrResult indicating success or failure
See Also
MapParameters
Bake an Acoustic Map given particular parameters. It will use automatically generated points.
Parameters
sceneIR
A pointer to the Acoustic Map object
parameters
The parameters to be used for the baking
Returns
Returns an ovrResult indicating success or failure
See Also
MapParameters
Bake an Acoustic Map given particular parameters. It will use custom points.
Parameters
sceneIR
A pointer to the Acoustic Map object
points
An array of custom points to be used for the baking
pointCount
The number of points in the points array
parameters
The parameters to be used for the baking
Returns
Returns an ovrResult indicating success or failure
See Also
MapParameters
Get the number of points used in the Acoustic Map.
Parameters
sceneIR
A pointer to the Acoustic Map object
pointCount
The number of points in the Acoustic Map
Returns
Returns an ovrResult indicating success or failure
Get the exact points used in the Acoustic Map.
Parameters
sceneIR
A pointer to the Acoustic Map object
points
An array of the points used in the Acoustic Map
maxPointCount
The maximum number of points that can be stored in the points array
Returns
Returns an ovrResult indicating success or failure
Set the transform of an Acoustic Map object.
Parameters
sceneIR
A pointer to the Acoustic Map object
matrix
The transform to apply represented in a 4x4 matrix
Returns
Returns an ovrResult indicating success or failure
Get the transform currently applied to an Acoustic Map object.
Parameters
sceneIR
A pointer to the Acoustic Map object
matrix4x4
The transform currently applied to the Acoustic Map represented in a 4x4 matrix
Returns
Returns an ovrResult indicating success or failure
Write an Acoustic Map into a .xramap file.
Parameters
sceneIR
A pointer to the Acoustic Map object
filePath
A fully qualified path to which the output file should be written
Returns
Returns an ovrResult indicating success or failure
Read a .xramap file into an Acoustic Map object.
Parameters
sceneIR
A pointer to the Acoustic Map object
filePath
A fully qualified path which the .xramap file that should be read from
Returns
Returns an ovrResult indicating success or failure
Read a raw data array into an Acoustic Map object. Allows for alternate file reading methods.
Parameters
sceneIR
A pointer to the Acoustic Map object
data
A pointer to the raw data that should be read
dataLength
The number of bytes in the raw data
Returns
Returns an ovrResult indicating success or failure
Create a new Control Zone object.
Parameters
control
A pointer to the Control Zone object
Returns
Returns an ovrResult indicating success or failure
Destroy a new Control Zone object.
Parameters
control
A pointer to the Control Zone object
Returns
Returns an ovrResult indicating success or failure
Enable or Disable Control Zone object.
Parameters
control
A pointer to the Control Zone object
enabled
bool specifying if the Control Zone should be enabled or disabled
Returns
Returns an ovrResult indicating success or failure
Get whether a Control Zone object is enabled or disabled.
Parameters
control
A pointer to the Control Zone object
enabled
bool specifying if the Control Zone is enabled or disabled
Returns
Returns an ovrResult indicating success or failure
Set the transform of a Control Zone object.
Parameters
control
A pointer to the Control Zone object
matrix
The transform to apply represented in a 4x4 matrix
Returns
Returns an ovrResult indicating success or failure
Get the transform currently applied to a Control Zone object.
Parameters
control
A pointer to the Control Zone object
matrix4x4
The transform currently applied to the Control Zone represented in a 4x4 matrix
Returns
Returns an ovrResult indicating success or failure
Set the boundaries of a Control Zone object.
Parameters
control
A pointer to the Control Zone object
sizeX
The width of the boundary
sizeY
The height of the boundary
sizeZ
The depth of the boundary
Returns
Returns an ovrResult indicating success or failure
Get the boundaries of a Control Zone object.
Parameters
control
A pointer to the Control Zone object
sizeX
The size of the boundary along the x axis
sizeY
The size of the boundary along the y axis
sizeZ
The size of the boundary along the z axis
Returns
Returns an ovrResult indicating success or failure
Set the distance to fade outward from the boundaries of a Control Zone object.
Parameters
control
A pointer to the Control Zone object
fadeX
The amount of fade in the x direction
fadeY
The amount of fade in the y direction
fadeZ
The amount of fade in the z direction
Returns
Returns an ovrResult indicating success or failure
Get the distance to fade outward from the boundaries of a Control Zone object.
Parameters
control
A pointer to the Control Zone object
fadeX
The amount of fade in the x direction
fadeY
The amount of fade in the y direction
fadeZ
The amount of fade in the z direction
Returns
Returns an ovrResult indicating success or failure
Set a property of the Control Zone object for a particular frequency.
Parameters
control
A pointer to the Control Zone object
property
The property of the Control Zone to set
frequency
The frequency to change the property at in Hz
value
The new value of the property at frequency
Returns
Returns an ovrResult indicating success or failure
Remove all values set for a particular property of a Control Zone object.
Parameters
control
A pointer to the Control Zone object
property
The property of the Control Zone to set
Did you find this page helpful?
Thumbs up icon
Thumbs down icon