mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
272 lines
11 KiB
C#
272 lines
11 KiB
C#
// <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;
|
|
}
|
|
}
|
|
}
|