mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
10 changed files with 784842 additions and 0 deletions
1174
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Channel.gen.cs
Normal file
1174
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Channel.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
1059
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.ChannelGroup.gen.cs
Normal file
1059
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.ChannelGroup.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
1179
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Dsp.gen.cs
Normal file
1179
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Dsp.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,272 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.FmodApi
|
||||
{
|
||||
public static partial class Fmod
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the connection's input DSP unit.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getinput">DSPConnection::getInput</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetInput(this DspConnection dspConnection, out Dsp input)
|
||||
{
|
||||
fixed (Dsp* inputPtr = &input)
|
||||
return PInvoke.DspConnectionGetInput(dspConnection, inputPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the connection's input DSP unit.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getinput">DSPConnection::getInput</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Dsp GetInput(this DspConnection dspConnection)
|
||||
{
|
||||
TryGetInput(dspConnection, out var input).Check();
|
||||
return input;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the connection's output DSP unit.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getoutput">DSPConnection::getOutput</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetOutput(this DspConnection dspConnection, out Dsp output)
|
||||
{
|
||||
fixed (Dsp* outputPtr = &output)
|
||||
return PInvoke.DspConnectionGetOutput(dspConnection, outputPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the connection's output DSP unit.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getoutput">DSPConnection::getOutput</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Dsp GetOutput(this DspConnection dspConnection)
|
||||
{
|
||||
TryGetOutput(dspConnection, out var output).Check();
|
||||
return output;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the connection's volume scale.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_setmix">DSPConnection::setMix</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetMix(this DspConnection dspConnection, float volume) =>
|
||||
PInvoke.DspConnectionSetMix(dspConnection, volume);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the connection's volume scale.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_setmix">DSPConnection::setMix</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetMix(this DspConnection dspConnection, float volume) =>
|
||||
TrySetMix(dspConnection, volume).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the connection's volume scale.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getmix">DSPConnection::getMix</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetMix(this DspConnection dspConnection, out float volume)
|
||||
{
|
||||
fixed (float* volumePtr = &volume)
|
||||
return PInvoke.DspConnectionGetMix(dspConnection, volumePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the connection's volume scale.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getmix">DSPConnection::getMix</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float GetMix(this DspConnection dspConnection)
|
||||
{
|
||||
TryGetMix(dspConnection, out var volume).Check();
|
||||
return volume;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a 2 dimensional pan matrix that maps the signal from input channels (columns) to output speakers
|
||||
/// (rows).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_setmixmatrix">DSPConnection::setMixMatrix</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TrySetMixMatrix(
|
||||
this DspConnection dspConnection,
|
||||
float* matrix,
|
||||
int outChannels,
|
||||
int inChannels,
|
||||
int inChannelHop
|
||||
) => PInvoke.DspConnectionSetMixMatrix(dspConnection, matrix, outChannels, inChannels, inChannelHop);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a 2 dimensional pan matrix that maps the signal from input channels (columns) to output speakers
|
||||
/// (rows).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_setmixmatrix">DSPConnection::setMixMatrix</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void SetMixMatrix(
|
||||
this DspConnection dspConnection,
|
||||
float* matrix,
|
||||
int outChannels,
|
||||
int inChannels,
|
||||
int inChannelHop
|
||||
) => TrySetMixMatrix(dspConnection, matrix, outChannels, inChannels, inChannelHop).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a 2 dimensional pan matrix that maps the signal from input channels (columns) to output
|
||||
/// speakers (rows).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getmixmatrix">DSPConnection::getMixMatrix</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetMixMatrix(
|
||||
this DspConnection dspConnection,
|
||||
float* matrix,
|
||||
out int outChannels,
|
||||
out int inChannels,
|
||||
int inChannelHop
|
||||
)
|
||||
{
|
||||
fixed (int* outChannelsPtr = &outChannels)
|
||||
fixed (int* inChannelsPtr = &inChannels)
|
||||
return PInvoke.DspConnectionGetMixMatrix(
|
||||
dspConnection,
|
||||
matrix,
|
||||
outChannelsPtr,
|
||||
inChannelsPtr,
|
||||
inChannelHop
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a 2 dimensional pan matrix that maps the signal from input channels (columns) to output
|
||||
/// speakers (rows).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getmixmatrix">DSPConnection::getMixMatrix</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void GetMixMatrix(
|
||||
this DspConnection dspConnection,
|
||||
float* matrix,
|
||||
out int outChannels,
|
||||
out int inChannels,
|
||||
int inChannelHop
|
||||
) => TryGetMixMatrix(dspConnection, matrix, out outChannels, out inChannels, inChannelHop).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the type of the connection between two DSP units.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_gettype">DSPConnection::getType</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetType(this DspConnection dspConnection, out DspConnectionType type)
|
||||
{
|
||||
fixed (DspConnectionType* typePtr = &type)
|
||||
return PInvoke.DspConnectionGetType(dspConnection, typePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the type of the connection between two DSP units.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_gettype">DSPConnection::getType</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static DspConnectionType GetType(this DspConnection dspConnection)
|
||||
{
|
||||
TryGetType(dspConnection, out var type).Check();
|
||||
return type;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_setuserdata">DSPConnection::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetUserData(this DspConnection dspConnection, nint userData) =>
|
||||
PInvoke.DspConnectionSetUserData(dspConnection, userData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_setuserdata">DSPConnection::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetUserData(this DspConnection dspConnection, nint userData) =>
|
||||
TrySetUserData(dspConnection, userData).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getuserdata">DSPConnection::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetUserData(this DspConnection dspConnection, out nint userData)
|
||||
{
|
||||
fixed (nint* userDataPtr = &userData)
|
||||
return PInvoke.DspConnectionGetUserData(dspConnection, userDataPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-dspconnection.html#dspconnection_getuserdata">DSPConnection::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static nint GetUserData(this DspConnection dspConnection)
|
||||
{
|
||||
TryGetUserData(dspConnection, out var userData).Check();
|
||||
return userData;
|
||||
}
|
||||
}
|
||||
}
|
||||
2959
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.FmodSystem.gen.cs
Normal file
2959
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.FmodSystem.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
596
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Geometry.gen.cs
Normal file
596
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Geometry.gen.cs
Normal file
|
|
@ -0,0 +1,596 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.FmodApi
|
||||
{
|
||||
public static partial class Fmod
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Frees a geometry object and releases its memory.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_release">Geometry::release</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TryRelease(this Geometry geometry) => PInvoke.GeometryRelease(geometry);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Frees a geometry object and releases its memory.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_release">Geometry::release</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void Release(this Geometry geometry) => TryRelease(geometry).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Adds a polygon.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_addpolygon">Geometry::addPolygon</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryAddPolygon(
|
||||
this Geometry geometry,
|
||||
float directOcclusion,
|
||||
float reverbOcclusion,
|
||||
Bool32 doubleSided,
|
||||
int numVertices,
|
||||
in float3 vertices,
|
||||
out int polygonIndex
|
||||
)
|
||||
{
|
||||
fixed (float3* verticesPtr = &vertices)
|
||||
fixed (int* polygonIndexPtr = &polygonIndex)
|
||||
return PInvoke.GeometryAddPolygon(
|
||||
geometry,
|
||||
directOcclusion,
|
||||
reverbOcclusion,
|
||||
doubleSided,
|
||||
numVertices,
|
||||
verticesPtr,
|
||||
polygonIndexPtr
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Adds a polygon.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_addpolygon">Geometry::addPolygon</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int AddPolygon(
|
||||
this Geometry geometry,
|
||||
float directOcclusion,
|
||||
float reverbOcclusion,
|
||||
Bool32 doubleSided,
|
||||
int numVertices,
|
||||
in float3 vertices
|
||||
)
|
||||
{
|
||||
TryAddPolygon(
|
||||
geometry,
|
||||
directOcclusion,
|
||||
reverbOcclusion,
|
||||
doubleSided,
|
||||
numVertices,
|
||||
vertices,
|
||||
out var polygonIndex
|
||||
)
|
||||
.Check();
|
||||
return polygonIndex;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the number of polygons in this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getnumpolygons">Geometry::getNumPolygons</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetNumPolygons(this Geometry geometry, out int numPolygons)
|
||||
{
|
||||
fixed (int* numPolygonsPtr = &numPolygons)
|
||||
return PInvoke.GeometryGetNumPolygons(geometry, numPolygonsPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the number of polygons in this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getnumpolygons">Geometry::getNumPolygons</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int GetNumPolygons(this Geometry geometry)
|
||||
{
|
||||
TryGetNumPolygons(geometry, out var numPolygons).Check();
|
||||
return numPolygons;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the maximum number of polygons and vertices allocatable for this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getmaxpolygons">Geometry::getMaxPolygons</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetMaxPolygons(this Geometry geometry, out int maxPolygons, out int maxVertices)
|
||||
{
|
||||
fixed (int* maxPolygonsPtr = &maxPolygons)
|
||||
fixed (int* maxVerticesPtr = &maxVertices)
|
||||
return PInvoke.GeometryGetMaxPolygons(geometry, maxPolygonsPtr, maxVerticesPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the maximum number of polygons and vertices allocatable for this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getmaxpolygons">Geometry::getMaxPolygons</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void GetMaxPolygons(this Geometry geometry, out int maxPolygons, out int maxVertices) =>
|
||||
TryGetMaxPolygons(geometry, out maxPolygons, out maxVertices).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Gets the number of vertices in a polygon.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getpolygonnumvertices">Geometry::getPolygonNumVertices</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetPolygonNumVertices(this Geometry geometry, int index, out int numVertices)
|
||||
{
|
||||
fixed (int* numVerticesPtr = &numVertices)
|
||||
return PInvoke.GeometryGetPolygonNumVertices(geometry, index, numVerticesPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Gets the number of vertices in a polygon.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getpolygonnumvertices">Geometry::getPolygonNumVertices</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int GetPolygonNumVertices(this Geometry geometry, int index)
|
||||
{
|
||||
TryGetPolygonNumVertices(geometry, index, out var numVertices).Check();
|
||||
return numVertices;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Alters the position of a polygon's vertex inside a geometry object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setpolygonvertex">Geometry::setPolygonVertex</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TrySetPolygonVertex(
|
||||
this Geometry geometry,
|
||||
int index,
|
||||
int vertexIndex,
|
||||
in float3 vertex
|
||||
)
|
||||
{
|
||||
fixed (float3* vertexPtr = &vertex)
|
||||
return PInvoke.GeometrySetPolygonVertex(geometry, index, vertexIndex, vertexPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Alters the position of a polygon's vertex inside a geometry object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setpolygonvertex">Geometry::setPolygonVertex</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetPolygonVertex(this Geometry geometry, int index, int vertexIndex, in float3 vertex) =>
|
||||
TrySetPolygonVertex(geometry, index, vertexIndex, vertex).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the position of a vertex.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getpolygonvertex">Geometry::getPolygonVertex</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetPolygonVertex(
|
||||
this Geometry geometry,
|
||||
int index,
|
||||
int vertexIndex,
|
||||
out float3 vertex
|
||||
)
|
||||
{
|
||||
fixed (float3* vertexPtr = &vertex)
|
||||
return PInvoke.GeometryGetPolygonVertex(geometry, index, vertexIndex, vertexPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the position of a vertex.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getpolygonvertex">Geometry::getPolygonVertex</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float3 GetPolygonVertex(this Geometry geometry, int index, int vertexIndex)
|
||||
{
|
||||
TryGetPolygonVertex(geometry, index, vertexIndex, out var vertex).Check();
|
||||
return vertex;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets individual attributes for a polygon inside a geometry object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setpolygonattributes">Geometry::setPolygonAttributes</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetPolygonAttributes(
|
||||
this Geometry geometry,
|
||||
int index,
|
||||
float directOcclusion,
|
||||
float reverbOcclusion,
|
||||
Bool32 doubleSided
|
||||
) => PInvoke.GeometrySetPolygonAttributes(geometry, index, directOcclusion, reverbOcclusion, doubleSided);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets individual attributes for a polygon inside a geometry object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setpolygonattributes">Geometry::setPolygonAttributes</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetPolygonAttributes(
|
||||
this Geometry geometry,
|
||||
int index,
|
||||
float directOcclusion,
|
||||
float reverbOcclusion,
|
||||
Bool32 doubleSided
|
||||
) => TrySetPolygonAttributes(geometry, index, directOcclusion, reverbOcclusion, doubleSided).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the attributes for a polygon.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getpolygonattributes">Geometry::getPolygonAttributes</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetPolygonAttributes(
|
||||
this Geometry geometry,
|
||||
int index,
|
||||
out float directOcclusion,
|
||||
out float reverbOcclusion,
|
||||
out Bool32 doubleSided
|
||||
)
|
||||
{
|
||||
fixed (float* directOcclusionPtr = &directOcclusion)
|
||||
fixed (float* reverbOcclusionPtr = &reverbOcclusion)
|
||||
fixed (Bool32* doubleSidedPtr = &doubleSided)
|
||||
return PInvoke.GeometryGetPolygonAttributes(
|
||||
geometry,
|
||||
index,
|
||||
directOcclusionPtr,
|
||||
reverbOcclusionPtr,
|
||||
doubleSidedPtr
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the attributes for a polygon.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getpolygonattributes">Geometry::getPolygonAttributes</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void GetPolygonAttributes(
|
||||
this Geometry geometry,
|
||||
int index,
|
||||
out float directOcclusion,
|
||||
out float reverbOcclusion,
|
||||
out Bool32 doubleSided
|
||||
) =>
|
||||
TryGetPolygonAttributes(geometry, index, out directOcclusion, out reverbOcclusion, out doubleSided).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets whether an object is processed by the geometry engine.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setactive">Geometry::setActive</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetActive(this Geometry geometry, Bool32 active) =>
|
||||
PInvoke.GeometrySetActive(geometry, active);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets whether an object is processed by the geometry engine.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setactive">Geometry::setActive</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetActive(this Geometry geometry, Bool32 active) => TrySetActive(geometry, active).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves whether an object is processed by the geometry engine.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getactive">Geometry::getActive</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetActive(this Geometry geometry, out Bool32 active)
|
||||
{
|
||||
fixed (Bool32* activePtr = &active)
|
||||
return PInvoke.GeometryGetActive(geometry, activePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves whether an object is processed by the geometry engine.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getactive">Geometry::getActive</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Bool32 GetActive(this Geometry geometry)
|
||||
{
|
||||
TryGetActive(geometry, out var active).Check();
|
||||
return active;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the 3D orientation of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setrotation">Geometry::setRotation</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TrySetRotation(this Geometry geometry, in float3 forward, in float3 up)
|
||||
{
|
||||
fixed (float3* forwardPtr = &forward)
|
||||
fixed (float3* upPtr = &up)
|
||||
return PInvoke.GeometrySetRotation(geometry, forwardPtr, upPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the 3D orientation of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setrotation">Geometry::setRotation</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetRotation(this Geometry geometry, in float3 forward, in float3 up) =>
|
||||
TrySetRotation(geometry, forward, up).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the 3D orientation of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getrotation">Geometry::getRotation</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetRotation(this Geometry geometry, out float3 forward, out float3 up)
|
||||
{
|
||||
fixed (float3* forwardPtr = &forward)
|
||||
fixed (float3* upPtr = &up)
|
||||
return PInvoke.GeometryGetRotation(geometry, forwardPtr, upPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the 3D orientation of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getrotation">Geometry::getRotation</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void GetRotation(this Geometry geometry, out float3 forward, out float3 up) =>
|
||||
TryGetRotation(geometry, out forward, out up).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the 3D position of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setposition">Geometry::setPosition</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TrySetPosition(this Geometry geometry, in float3 position)
|
||||
{
|
||||
fixed (float3* positionPtr = &position)
|
||||
return PInvoke.GeometrySetPosition(geometry, positionPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the 3D position of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setposition">Geometry::setPosition</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetPosition(this Geometry geometry, in float3 position) =>
|
||||
TrySetPosition(geometry, position).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the 3D position of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getposition">Geometry::getPosition</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetPosition(this Geometry geometry, out float3 position)
|
||||
{
|
||||
fixed (float3* positionPtr = &position)
|
||||
return PInvoke.GeometryGetPosition(geometry, positionPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the 3D position of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getposition">Geometry::getPosition</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float3 GetPosition(this Geometry geometry)
|
||||
{
|
||||
TryGetPosition(geometry, out var position).Check();
|
||||
return position;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the 3D scale of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setscale">Geometry::setScale</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TrySetScale(this Geometry geometry, in float3 scale)
|
||||
{
|
||||
fixed (float3* scalePtr = &scale)
|
||||
return PInvoke.GeometrySetScale(geometry, scalePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the 3D scale of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setscale">Geometry::setScale</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetScale(this Geometry geometry, in float3 scale) => TrySetScale(geometry, scale).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the 3D scale of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getscale">Geometry::getScale</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetScale(this Geometry geometry, out float3 scale)
|
||||
{
|
||||
fixed (float3* scalePtr = &scale)
|
||||
return PInvoke.GeometryGetScale(geometry, scalePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the 3D scale of the object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getscale">Geometry::getScale</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float3 GetScale(this Geometry geometry)
|
||||
{
|
||||
TryGetScale(geometry, out var scale).Check();
|
||||
return scale;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Saves the geometry object as a serialized binary block to a user memory buffer.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_save">Geometry::save</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TrySave(this Geometry geometry, nint data, out int dataSize)
|
||||
{
|
||||
fixed (int* dataSizePtr = &dataSize)
|
||||
return PInvoke.GeometrySave(geometry, data, dataSizePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Saves the geometry object as a serialized binary block to a user memory buffer.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_save">Geometry::save</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int Save(this Geometry geometry, nint data)
|
||||
{
|
||||
TrySave(geometry, data, out var dataSize).Check();
|
||||
return dataSize;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setuserdata">Geometry::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetUserData(this Geometry geometry, nint userData) =>
|
||||
PInvoke.GeometrySetUserData(geometry, userData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_setuserdata">Geometry::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetUserData(this Geometry geometry, nint userData) =>
|
||||
TrySetUserData(geometry, userData).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getuserdata">Geometry::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetUserData(this Geometry geometry, out nint userData)
|
||||
{
|
||||
fixed (nint* userDataPtr = &userData)
|
||||
return PInvoke.GeometryGetUserData(geometry, userDataPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-geometry.html#geometry_getuserdata">Geometry::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static nint GetUserData(this Geometry geometry)
|
||||
{
|
||||
TryGetUserData(geometry, out var userData).Check();
|
||||
return userData;
|
||||
}
|
||||
}
|
||||
}
|
||||
265
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Reverb3d.gen.cs
Normal file
265
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Reverb3d.gen.cs
Normal file
|
|
@ -0,0 +1,265 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.FmodApi
|
||||
{
|
||||
public static partial class Fmod
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Releases the memory for a reverb object and makes it inactive.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// If you release all Reverb3D objects and have not added a new Reverb3D object,
|
||||
/// System::setReverbProperties should be called to reset the reverb properties.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> System::createReverb3D
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_release">Reverb3D::release</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TryRelease(this Reverb3d reverb3d) => PInvoke.Reverb3dRelease(reverb3d);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Releases the memory for a reverb object and makes it inactive.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// If you release all Reverb3D objects and have not added a new Reverb3D object,
|
||||
/// System::setReverbProperties should be called to reset the reverb properties.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> System::createReverb3D
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_release">Reverb3D::release</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void Release(this Reverb3d reverb3d) => TryRelease(reverb3d).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the 3D attributes of a reverb sphere.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_set3dattributes">Reverb3D::set3DAttributes</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TrySet3dAttributes(
|
||||
this Reverb3d reverb3d,
|
||||
in float3 position,
|
||||
float minDistance,
|
||||
float maxDistance
|
||||
)
|
||||
{
|
||||
fixed (float3* positionPtr = &position)
|
||||
return PInvoke.Reverb3dSet3dAttributes(reverb3d, positionPtr, minDistance, maxDistance);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the 3D attributes of a reverb sphere.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_set3dattributes">Reverb3D::set3DAttributes</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void Set3dAttributes(
|
||||
this Reverb3d reverb3d,
|
||||
in float3 position,
|
||||
float minDistance,
|
||||
float maxDistance
|
||||
) => TrySet3dAttributes(reverb3d, position, minDistance, maxDistance).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the 3D attributes of a reverb sphere.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_get3dattributes">Reverb3D::get3DAttributes</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGet3dAttributes(
|
||||
this Reverb3d reverb3d,
|
||||
out float3 position,
|
||||
out float minDistance,
|
||||
out float maxDistance
|
||||
)
|
||||
{
|
||||
fixed (float3* positionPtr = &position)
|
||||
fixed (float* minDistancePtr = &minDistance)
|
||||
fixed (float* maxDistancePtr = &maxDistance)
|
||||
return PInvoke.Reverb3dGet3dAttributes(reverb3d, positionPtr, minDistancePtr, maxDistancePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the 3D attributes of a reverb sphere.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_get3dattributes">Reverb3D::get3DAttributes</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void Get3dAttributes(
|
||||
this Reverb3d reverb3d,
|
||||
out float3 position,
|
||||
out float minDistance,
|
||||
out float maxDistance
|
||||
) => TryGet3dAttributes(reverb3d, out position, out minDistance, out maxDistance).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the environmental properties of a reverb sphere.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_setproperties">Reverb3D::setProperties</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TrySetProperties(this Reverb3d reverb3d, in ReverbProperties properties)
|
||||
{
|
||||
fixed (ReverbProperties* propertiesPtr = &properties)
|
||||
return PInvoke.Reverb3dSetProperties(reverb3d, propertiesPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the environmental properties of a reverb sphere.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_setproperties">Reverb3D::setProperties</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetProperties(this Reverb3d reverb3d, in ReverbProperties properties) =>
|
||||
TrySetProperties(reverb3d, properties).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the environmental properties of a reverb sphere.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_getproperties">Reverb3D::getProperties</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetProperties(this Reverb3d reverb3d, out ReverbProperties properties)
|
||||
{
|
||||
fixed (ReverbProperties* propertiesPtr = &properties)
|
||||
return PInvoke.Reverb3dGetProperties(reverb3d, propertiesPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the environmental properties of a reverb sphere.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_getproperties">Reverb3D::getProperties</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static ReverbProperties GetProperties(this Reverb3d reverb3d)
|
||||
{
|
||||
TryGetProperties(reverb3d, out var properties).Check();
|
||||
return properties;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the active state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_setactive">Reverb3D::setActive</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetActive(this Reverb3d reverb3d, Bool32 active) =>
|
||||
PInvoke.Reverb3dSetActive(reverb3d, active);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the active state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_setactive">Reverb3D::setActive</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetActive(this Reverb3d reverb3d, Bool32 active) => TrySetActive(reverb3d, active).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the active state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_getactive">Reverb3D::getActive</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetActive(this Reverb3d reverb3d, out Bool32 active)
|
||||
{
|
||||
fixed (Bool32* activePtr = &active)
|
||||
return PInvoke.Reverb3dGetActive(reverb3d, activePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the active state.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_getactive">Reverb3D::getActive</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Bool32 GetActive(this Reverb3d reverb3d)
|
||||
{
|
||||
TryGetActive(reverb3d, out var active).Check();
|
||||
return active;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_setuserdata">Reverb3D::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetUserData(this Reverb3d reverb3d, nint userData) =>
|
||||
PInvoke.Reverb3dSetUserData(reverb3d, userData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_setuserdata">Reverb3D::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetUserData(this Reverb3d reverb3d, nint userData) =>
|
||||
TrySetUserData(reverb3d, userData).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_getuserdata">Reverb3D::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetUserData(this Reverb3d reverb3d, out nint userData)
|
||||
{
|
||||
fixed (nint* userDataPtr = &userData)
|
||||
return PInvoke.Reverb3dGetUserData(reverb3d, userDataPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-reverb3d.html#reverb3d_getuserdata">Reverb3D::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static nint GetUserData(this Reverb3d reverb3d)
|
||||
{
|
||||
TryGetUserData(reverb3d, out var userData).Check();
|
||||
return userData;
|
||||
}
|
||||
}
|
||||
}
|
||||
1233
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Sound.gen.cs
Normal file
1233
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.Sound.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,456 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.FmodApi
|
||||
{
|
||||
public static partial class Fmod
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Releases a soundgroup object and returns all sounds back to the master sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// You cannot release the master SoundGroup.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> System::createSoundGroup, System::getMasterSoundGroup
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_release">SoundGroup::release</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TryRelease(this SoundGroup soundGroup) => PInvoke.SoundGroupRelease(soundGroup);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Releases a soundgroup object and returns all sounds back to the master sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// You cannot release the master SoundGroup.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> System::createSoundGroup, System::getMasterSoundGroup
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_release">SoundGroup::release</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void Release(this SoundGroup soundGroup) => TryRelease(soundGroup).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the parent System object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getsystemobject">SoundGroup::getSystemObject</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetSystemObject(this SoundGroup soundGroup, out FmodSystem system)
|
||||
{
|
||||
fixed (FmodSystem* systemPtr = &system)
|
||||
return PInvoke.SoundGroupGetSystemObject(soundGroup, systemPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the parent System object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getsystemobject">SoundGroup::getSystemObject</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static FmodSystem GetSystemObject(this SoundGroup soundGroup)
|
||||
{
|
||||
TryGetSystemObject(soundGroup, out var system).Check();
|
||||
return system;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the maximum number of playbacks to be audible at once in a sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setmaxaudible">SoundGroup::setMaxAudible</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetMaxAudible(this SoundGroup soundGroup, int maxAudible) =>
|
||||
PInvoke.SoundGroupSetMaxAudible(soundGroup, maxAudible);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the maximum number of playbacks to be audible at once in a sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setmaxaudible">SoundGroup::setMaxAudible</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetMaxAudible(this SoundGroup soundGroup, int maxAudible) =>
|
||||
TrySetMaxAudible(soundGroup, maxAudible).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the maximum number of playbacks to be audible at once in a sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getmaxaudible">SoundGroup::getMaxAudible</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetMaxAudible(this SoundGroup soundGroup, out int maxAudible)
|
||||
{
|
||||
fixed (int* maxAudiblePtr = &maxAudible)
|
||||
return PInvoke.SoundGroupGetMaxAudible(soundGroup, maxAudiblePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the maximum number of playbacks to be audible at once in a sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getmaxaudible">SoundGroup::getMaxAudible</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int GetMaxAudible(this SoundGroup soundGroup)
|
||||
{
|
||||
TryGetMaxAudible(soundGroup, out var maxAudible).Check();
|
||||
return maxAudible;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// This function changes the way the sound playback behaves when too many sounds are playing in a
|
||||
/// soundgroup.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setmaxaudiblebehavior">SoundGroup::setMaxAudibleBehavior</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetMaxAudibleBehavior(this SoundGroup soundGroup, SoundGroupBehavior behavior) =>
|
||||
PInvoke.SoundGroupSetMaxAudibleBehavior(soundGroup, behavior);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// This function changes the way the sound playback behaves when too many sounds are playing in a
|
||||
/// soundgroup.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setmaxaudiblebehavior">SoundGroup::setMaxAudibleBehavior</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetMaxAudibleBehavior(this SoundGroup soundGroup, SoundGroupBehavior behavior) =>
|
||||
TrySetMaxAudibleBehavior(soundGroup, behavior).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the current max audible behavior.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getmaxaudiblebehavior">SoundGroup::getMaxAudibleBehavior</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetMaxAudibleBehavior(
|
||||
this SoundGroup soundGroup,
|
||||
out SoundGroupBehavior behavior
|
||||
)
|
||||
{
|
||||
fixed (SoundGroupBehavior* behaviorPtr = &behavior)
|
||||
return PInvoke.SoundGroupGetMaxAudibleBehavior(soundGroup, behaviorPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the current max audible behavior.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getmaxaudiblebehavior">SoundGroup::getMaxAudibleBehavior</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static SoundGroupBehavior GetMaxAudibleBehavior(this SoundGroup soundGroup)
|
||||
{
|
||||
TryGetMaxAudibleBehavior(soundGroup, out var behavior).Check();
|
||||
return behavior;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a mute fade time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setmutefadespeed">SoundGroup::setMuteFadeSpeed</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetMuteFadeSpeed(this SoundGroup soundGroup, float speed) =>
|
||||
PInvoke.SoundGroupSetMuteFadeSpeed(soundGroup, speed);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a mute fade time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setmutefadespeed">SoundGroup::setMuteFadeSpeed</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetMuteFadeSpeed(this SoundGroup soundGroup, float speed) =>
|
||||
TrySetMuteFadeSpeed(soundGroup, speed).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the current mute fade time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getmutefadespeed">SoundGroup::getMuteFadeSpeed</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetMuteFadeSpeed(this SoundGroup soundGroup, out float speed)
|
||||
{
|
||||
fixed (float* speedPtr = &speed)
|
||||
return PInvoke.SoundGroupGetMuteFadeSpeed(soundGroup, speedPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the current mute fade time.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getmutefadespeed">SoundGroup::getMuteFadeSpeed</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float GetMuteFadeSpeed(this SoundGroup soundGroup)
|
||||
{
|
||||
TryGetMuteFadeSpeed(soundGroup, out var speed).Check();
|
||||
return speed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the volume of the sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setvolume">SoundGroup::setVolume</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetVolume(this SoundGroup soundGroup, float volume) =>
|
||||
PInvoke.SoundGroupSetVolume(soundGroup, volume);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the volume of the sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setvolume">SoundGroup::setVolume</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetVolume(this SoundGroup soundGroup, float volume) =>
|
||||
TrySetVolume(soundGroup, volume).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the volume of the sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getvolume">SoundGroup::getVolume</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetVolume(this SoundGroup soundGroup, out float volume)
|
||||
{
|
||||
fixed (float* volumePtr = &volume)
|
||||
return PInvoke.SoundGroupGetVolume(soundGroup, volumePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the volume of the sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getvolume">SoundGroup::getVolume</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float GetVolume(this SoundGroup soundGroup)
|
||||
{
|
||||
TryGetVolume(soundGroup, out var volume).Check();
|
||||
return volume;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Stops all sounds within this soundgroup.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> System::playSound
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_stop">SoundGroup::stop</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TryStop(this SoundGroup soundGroup) => PInvoke.SoundGroupStop(soundGroup);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Stops all sounds within this soundgroup.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <b>See Also:</b> System::playSound
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_stop">SoundGroup::stop</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void Stop(this SoundGroup soundGroup) => TryStop(soundGroup).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the name of the sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getname">SoundGroup::getName</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetName(this SoundGroup soundGroup, byte* name, int nameLen) =>
|
||||
PInvoke.SoundGroupGetName(soundGroup, name, nameLen);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the name of the sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getname">SoundGroup::getName</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe void GetName(this SoundGroup soundGroup, byte* name, int nameLen) =>
|
||||
TryGetName(soundGroup, name, nameLen).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the current number of sounds in this sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getnumsounds">SoundGroup::getNumSounds</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetNumSounds(this SoundGroup soundGroup, out int numSounds)
|
||||
{
|
||||
fixed (int* numSoundsPtr = &numSounds)
|
||||
return PInvoke.SoundGroupGetNumSounds(soundGroup, numSoundsPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the current number of sounds in this sound group.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getnumsounds">SoundGroup::getNumSounds</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int GetNumSounds(this SoundGroup soundGroup)
|
||||
{
|
||||
TryGetNumSounds(soundGroup, out var numSounds).Check();
|
||||
return numSounds;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a sound.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getsound">SoundGroup::getSound</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetSound(this SoundGroup soundGroup, int index, out Sound sound)
|
||||
{
|
||||
fixed (Sound* soundPtr = &sound)
|
||||
return PInvoke.SoundGroupGetSound(soundGroup, index, soundPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a sound.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getsound">SoundGroup::getSound</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Sound GetSound(this SoundGroup soundGroup, int index)
|
||||
{
|
||||
TryGetSound(soundGroup, index, out var sound).Check();
|
||||
return sound;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the number of currently playing Channels for the SoundGroup.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getnumplaying">SoundGroup::getNumPlaying</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetNumPlaying(this SoundGroup soundGroup, out int numPlaying)
|
||||
{
|
||||
fixed (int* numPlayingPtr = &numPlaying)
|
||||
return PInvoke.SoundGroupGetNumPlaying(soundGroup, numPlayingPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the number of currently playing Channels for the SoundGroup.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getnumplaying">SoundGroup::getNumPlaying</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static int GetNumPlaying(this SoundGroup soundGroup)
|
||||
{
|
||||
TryGetNumPlaying(soundGroup, out var numPlaying).Check();
|
||||
return numPlaying;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setuserdata">SoundGroup::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetUserData(this SoundGroup soundGroup, nint userData) =>
|
||||
PInvoke.SoundGroupSetUserData(soundGroup, userData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_setuserdata">SoundGroup::setUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetUserData(this SoundGroup soundGroup, nint userData) =>
|
||||
TrySetUserData(soundGroup, userData).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getuserdata">SoundGroup::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetUserData(this SoundGroup soundGroup, out nint userData)
|
||||
{
|
||||
fixed (nint* userDataPtr = &userData)
|
||||
return PInvoke.SoundGroupGetUserData(soundGroup, userDataPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves a user value associated with this object.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/core-api-soundgroup.html#soundgroup_getuserdata">SoundGroup::getUserData</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static nint GetUserData(this SoundGroup soundGroup)
|
||||
{
|
||||
TryGetUserData(soundGroup, out var userData).Check();
|
||||
return userData;
|
||||
}
|
||||
}
|
||||
}
|
||||
111
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.gen.cs
Normal file
111
Brutal.Fmod/FmodCoreApi/Generated/Libraries/Fmod.gen.cs
Normal file
|
|
@ -0,0 +1,111 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.FmodApi
|
||||
{
|
||||
public static partial class Fmod
|
||||
{
|
||||
/// Memory::initialize
|
||||
public static Result TryMemoryInitialize(
|
||||
nint poolMem,
|
||||
int poolLen,
|
||||
MemoryAllocCallbackPtr userAlloc,
|
||||
MemoryReallocCallbackPtr userRealloc,
|
||||
MemoryFreeCallbackPtr userFree,
|
||||
MemoryType memTypeFlags
|
||||
) => PInvoke.MemoryInitialize(poolMem, poolLen, userAlloc, userRealloc, userFree, memTypeFlags);
|
||||
|
||||
/// Memory::initialize
|
||||
public static void MemoryInitialize(
|
||||
nint poolMem,
|
||||
int poolLen,
|
||||
MemoryAllocCallbackPtr userAlloc,
|
||||
MemoryReallocCallbackPtr userRealloc,
|
||||
MemoryFreeCallbackPtr userFree,
|
||||
MemoryType memTypeFlags
|
||||
) => TryMemoryInitialize(poolMem, poolLen, userAlloc, userRealloc, userFree, memTypeFlags).Check();
|
||||
|
||||
/// Memory::getStats
|
||||
public static unsafe Result TryMemoryGetStats(out int currentAlloced, out int maxAlloced, Bool32 blocking)
|
||||
{
|
||||
fixed (int* currentAllocedPtr = ¤tAlloced)
|
||||
fixed (int* maxAllocedPtr = &maxAlloced)
|
||||
return PInvoke.MemoryGetStats(currentAllocedPtr, maxAllocedPtr, blocking);
|
||||
}
|
||||
|
||||
/// Memory::getStats
|
||||
public static void MemoryGetStats(out int currentAlloced, out int maxAlloced, Bool32 blocking) =>
|
||||
TryMemoryGetStats(out currentAlloced, out maxAlloced, blocking).Check();
|
||||
|
||||
/// Debug::initialize
|
||||
public static unsafe Result TryDebugInitialize(
|
||||
DebugFlags flags,
|
||||
DebugMode mode,
|
||||
DebugCallbackPtr callback,
|
||||
RefString8 fileName
|
||||
)
|
||||
{
|
||||
fixed (byte* fileNamePtr = fileName)
|
||||
return PInvoke.DebugInitialize(flags, mode, callback, fileNamePtr);
|
||||
}
|
||||
|
||||
/// Debug::initialize
|
||||
public static void DebugInitialize(
|
||||
DebugFlags flags,
|
||||
DebugMode mode,
|
||||
DebugCallbackPtr callback,
|
||||
RefString8 fileName
|
||||
) => TryDebugInitialize(flags, mode, callback, fileName).Check();
|
||||
|
||||
/// File::setDiskBusy
|
||||
public static Result TryFileSetDiskBusy(int busy) => PInvoke.FileSetDiskBusy(busy);
|
||||
|
||||
/// File::setDiskBusy
|
||||
public static void FileSetDiskBusy(int busy) => TryFileSetDiskBusy(busy).Check();
|
||||
|
||||
/// File::getDiskBusy
|
||||
public static unsafe Result TryFileGetDiskBusy(out int busy)
|
||||
{
|
||||
fixed (int* busyPtr = &busy)
|
||||
return PInvoke.FileGetDiskBusy(busyPtr);
|
||||
}
|
||||
|
||||
/// File::getDiskBusy
|
||||
public static int FileGetDiskBusy()
|
||||
{
|
||||
TryFileGetDiskBusy(out var busy).Check();
|
||||
return busy;
|
||||
}
|
||||
|
||||
/// Thread::setAttributes
|
||||
public static Result TryThreadSetAttributes(
|
||||
ThreadType type,
|
||||
ThreadAffinity affinity,
|
||||
ThreadPriority priority,
|
||||
ThreadStackSize stackSize
|
||||
) => PInvoke.ThreadSetAttributes(type, affinity, priority, stackSize);
|
||||
|
||||
/// Thread::setAttributes
|
||||
public static void ThreadSetAttributes(
|
||||
ThreadType type,
|
||||
ThreadAffinity affinity,
|
||||
ThreadPriority priority,
|
||||
ThreadStackSize stackSize
|
||||
) => TryThreadSetAttributes(type, affinity, priority, stackSize).Check();
|
||||
|
||||
/// System::create
|
||||
public static unsafe Result TrySystemCreate(out FmodSystem system, uint headerVersion)
|
||||
{
|
||||
fixed (FmodSystem* systemPtr = &system)
|
||||
return PInvoke.SystemCreate(systemPtr, headerVersion);
|
||||
}
|
||||
|
||||
/// System::create
|
||||
public static FmodSystem SystemCreate(uint headerVersion)
|
||||
{
|
||||
TrySystemCreate(out var system, headerVersion).Check();
|
||||
return system;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue