API reference

INativeInterface Interface

Abstract parent class for all classes that wrap a binary's interface.

Member Functions

Explicitly set the reflection model.
Parameters
Model[in]
The reflection model to use (default is Automatic)
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
Turn on and off specific features of the library.
Parameters
feature
A specific property to query
enabled
A bool specifying if the feature should be enabled
Returns
Returns an ovrResult indicating success or failure
Create a geometry object.
Use MetaXRAcousticNativeInterface.INativeInterface.DestroyAudioGeometry to destroy it.
Parameters
geometry
A pointer to the created geometry object
Returns
Returns an ovrResult indicating success or failure
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create 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
simplification
A struct containing flags for mesh simplification
Returns
Returns an ovrResult indicating success or failure
Set the transform of a geometry object.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create a geometry object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create a geometry object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create a geometry object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioGeometry to create 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
Get the value of a material property at the given frequency.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioMaterial to create a material object.
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
Create a new material object.
Use MetaXRAcousticNativeInterface.INativeInterface.DestroyAudioMaterial to destroy this material.
Parameters
material
A pointer to the newly created material object
Returns
Returns an ovrResult indicating success or failure
Destroy a material object created by MetaXRAcousticNativeInterface.INativeInterface.CreateAudioMaterial to create an audio material.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioMaterial to create an audio material.
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
Remove all the set values for a material property.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioMaterial to create an audio material.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.DestroyAudioSceneIR to destroy the 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 created by MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create an Acoustic Map Object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create an Acoustic Map Object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create 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
Generate the default values for the parameters of an Acoustic Map object.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create an Acoustic Map Object.
Parameters
parameters
The initialized parameters with default values
Returns
Returns an ovrResult indicating success or failure
Bake an Acoustic Map given particular parameters. It will use automatically generated points.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create an Acoustic Map Object.
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
Bake an Acoustic Map given particular parameters. It will use custom points.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create an Acoustic Map Object.
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
Get the number of points used in the Acoustic Map.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create an Acoustic Map Object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create an Acoustic Map Object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create an Acoustic Map Object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create 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. This allows you to use alternate file reading methods.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateAudioSceneIR to create an Acoustic Map Object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.DestroyControlZone to destroy the object.
Parameters
control
A pointer to the Control Zone object
Returns
Returns an ovrResult indicating success or failure
Destroy a new Control Zone object created by MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone.
Parameters
control
A pointer to the Control Zone object
Returns
Returns an ovrResult indicating success or failure
Enable or Disable Control Zone object.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create a 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create a Control Zone object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create 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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create a Control Zone object.
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.
Use MetaXRAcousticNativeInterface.INativeInterface.CreateControlZone to create 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