mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue