// // Generated by Brutal.Fmod.Generate; do not edit by hand. #nullable enable namespace Brutal.FmodApi { public static partial class Fmod { /// /// /// Releases the memory for a reverb object and makes it inactive. /// /// /// If you release all Reverb3D objects and have not added a new Reverb3D object, /// System::setReverbProperties should be called to reset the reverb properties. /// /// /// See Also: System::createReverb3D /// /// /// Reverb3D::release /// /// public static Result TryRelease(this Reverb3d reverb3d) => PInvoke.Reverb3dRelease(reverb3d); /// /// /// Releases the memory for a reverb object and makes it inactive. /// /// /// If you release all Reverb3D objects and have not added a new Reverb3D object, /// System::setReverbProperties should be called to reset the reverb properties. /// /// /// See Also: System::createReverb3D /// /// /// Reverb3D::release /// /// public static void Release(this Reverb3d reverb3d) => TryRelease(reverb3d).Check(); /// /// /// Sets the 3D attributes of a reverb sphere. /// /// /// Reverb3D::set3DAttributes /// /// 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); } /// /// /// Sets the 3D attributes of a reverb sphere. /// /// /// Reverb3D::set3DAttributes /// /// public static void Set3dAttributes( this Reverb3d reverb3d, in float3 position, float minDistance, float maxDistance ) => TrySet3dAttributes(reverb3d, position, minDistance, maxDistance).Check(); /// /// /// Retrieves the 3D attributes of a reverb sphere. /// /// /// Reverb3D::get3DAttributes /// /// 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); } /// /// /// Retrieves the 3D attributes of a reverb sphere. /// /// /// Reverb3D::get3DAttributes /// /// 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(); /// /// /// Sets the environmental properties of a reverb sphere. /// /// /// Reverb3D::setProperties /// /// public static unsafe Result TrySetProperties(this Reverb3d reverb3d, in ReverbProperties properties) { fixed (ReverbProperties* propertiesPtr = &properties) return PInvoke.Reverb3dSetProperties(reverb3d, propertiesPtr); } /// /// /// Sets the environmental properties of a reverb sphere. /// /// /// Reverb3D::setProperties /// /// public static void SetProperties(this Reverb3d reverb3d, in ReverbProperties properties) => TrySetProperties(reverb3d, properties).Check(); /// /// /// Retrieves the environmental properties of a reverb sphere. /// /// /// Reverb3D::getProperties /// /// public static unsafe Result TryGetProperties(this Reverb3d reverb3d, out ReverbProperties properties) { fixed (ReverbProperties* propertiesPtr = &properties) return PInvoke.Reverb3dGetProperties(reverb3d, propertiesPtr); } /// /// /// Retrieves the environmental properties of a reverb sphere. /// /// /// Reverb3D::getProperties /// /// public static ReverbProperties GetProperties(this Reverb3d reverb3d) { TryGetProperties(reverb3d, out var properties).Check(); return properties; } /// /// /// Sets the active state. /// /// /// Reverb3D::setActive /// /// public static Result TrySetActive(this Reverb3d reverb3d, Bool32 active) => PInvoke.Reverb3dSetActive(reverb3d, active); /// /// /// Sets the active state. /// /// /// Reverb3D::setActive /// /// public static void SetActive(this Reverb3d reverb3d, Bool32 active) => TrySetActive(reverb3d, active).Check(); /// /// /// Retrieves the active state. /// /// /// Reverb3D::getActive /// /// public static unsafe Result TryGetActive(this Reverb3d reverb3d, out Bool32 active) { fixed (Bool32* activePtr = &active) return PInvoke.Reverb3dGetActive(reverb3d, activePtr); } /// /// /// Retrieves the active state. /// /// /// Reverb3D::getActive /// /// public static Bool32 GetActive(this Reverb3d reverb3d) { TryGetActive(reverb3d, out var active).Check(); return active; } /// /// /// Sets a user value associated with this object. /// /// /// Reverb3D::setUserData /// /// public static Result TrySetUserData(this Reverb3d reverb3d, nint userData) => PInvoke.Reverb3dSetUserData(reverb3d, userData); /// /// /// Sets a user value associated with this object. /// /// /// Reverb3D::setUserData /// /// public static void SetUserData(this Reverb3d reverb3d, nint userData) => TrySetUserData(reverb3d, userData).Check(); /// /// /// Retrieves a user value associated with this object. /// /// /// Reverb3D::getUserData /// /// public static unsafe Result TryGetUserData(this Reverb3d reverb3d, out nint userData) { fixed (nint* userDataPtr = &userData) return PInvoke.Reverb3dGetUserData(reverb3d, userDataPtr); } /// /// /// Retrieves a user value associated with this object. /// /// /// Reverb3D::getUserData /// /// public static nint GetUserData(this Reverb3d reverb3d) { TryGetUserData(reverb3d, out var userData).Check(); return userData; } } }