mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,121 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Fmod.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.FmodApi.Studio
|
||||
{
|
||||
public static partial class FmodStudio
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Checks that the VCA reference is valid.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-vca.html#studio_vca_isvalid">Studio::VCA::isValid</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Bool32 IsValid(this Vca vca) => PInvoke.VcaIsValid(vca);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the VCA's GUID.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-vca.html#studio_vca_getid">Studio::VCA::getID</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetId(this Vca vca, out Guid id)
|
||||
{
|
||||
fixed (Guid* idPtr = &id)
|
||||
return PInvoke.VcaGetId(vca, idPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the VCA's GUID.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-vca.html#studio_vca_getid">Studio::VCA::getID</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Guid GetId(this Vca vca)
|
||||
{
|
||||
TryGetId(vca, out var id).Check();
|
||||
return id;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the path.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-vca.html#studio_vca_getpath">Studio::VCA::getPath</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetPath(this Vca vca, byte* path, int size, out int retrieved)
|
||||
{
|
||||
fixed (int* retrievedPtr = &retrieved)
|
||||
return PInvoke.VcaGetPath(vca, path, size, retrievedPtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the path.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-vca.html#studio_vca_getpath">Studio::VCA::getPath</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe int GetPath(this Vca vca, byte* path, int size)
|
||||
{
|
||||
TryGetPath(vca, path, size, out var retrieved).Check();
|
||||
return retrieved;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the volume level.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-vca.html#studio_vca_getvolume">Studio::VCA::getVolume</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static unsafe Result TryGetVolume(this Vca vca, out float volume, out float finalVolume)
|
||||
{
|
||||
fixed (float* volumePtr = &volume)
|
||||
fixed (float* finalVolumePtr = &finalVolume)
|
||||
return PInvoke.VcaGetVolume(vca, volumePtr, finalVolumePtr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Retrieves the volume level.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-vca.html#studio_vca_getvolume">Studio::VCA::getVolume</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void GetVolume(this Vca vca, out float volume, out float finalVolume) =>
|
||||
TryGetVolume(vca, out volume, out finalVolume).Check();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the volume level.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-vca.html#studio_vca_setvolume">Studio::VCA::setVolume</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Result TrySetVolume(this Vca vca, float volume) => PInvoke.VcaSetVolume(vca, volume);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Sets the volume level.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see href="https://www.fmod.com/docs/2.03/api/studio-api-vca.html#studio_vca_setvolume">Studio::VCA::setVolume</see>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static void SetVolume(this Vca vca, float volume) => TrySetVolume(vca, volume).Check();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue