@@ -12,6 +12,7 @@ public unsafe interface ISharedLibrary
1212 public bool Outdated { get ; }
1313 public delegate * unmanaged[ Cdecl] < nint , uint > Audio_GetID { get ; }
1414 public delegate * unmanaged[ Cdecl] < nint , uint > AudioAttachedOutput_GetID { get ; }
15+ public delegate * unmanaged[ Cdecl] < nint , uint > AudioFilter_GetID { get ; }
1516 public delegate * unmanaged[ Cdecl] < nint , uint > AudioFrontendOutput_GetID { get ; }
1617 public delegate * unmanaged[ Cdecl] < nint , uint > AudioOutput_GetID { get ; }
1718 public delegate * unmanaged[ Cdecl] < nint , uint > AudioWorldOutput_GetID { get ; }
@@ -188,6 +189,8 @@ public unsafe interface ISharedLibrary
188189 public delegate * unmanaged[ Cdecl] < nint , Rotation , void > Entity_SetRotation { get ; }
189190 public delegate * unmanaged[ Cdecl] < nint , void > Event_Cancel { get ; }
190191 public delegate * unmanaged[ Cdecl] < nint , byte > Event_WasCancelled { get ; }
192+ public delegate * unmanaged[ Cdecl] < nint , void > FreeAudioArray { get ; }
193+ public delegate * unmanaged[ Cdecl] < nint , void > FreeAudioOutputArray { get ; }
191194 public delegate * unmanaged[ Cdecl] < nint , void > FreeBlipArray { get ; }
192195 public delegate * unmanaged[ Cdecl] < nint , void > FreeCharArray { get ; }
193196 public delegate * unmanaged[ Cdecl] < nint , void > FreeCheckpointArray { get ; }
@@ -361,9 +364,10 @@ public unsafe interface ISharedLibrary
361364
362365 public unsafe class SharedLibrary : ISharedLibrary
363366 {
364- public readonly uint Methods = 1575 ;
367+ public readonly uint Methods = 1583 ;
365368 public delegate * unmanaged[ Cdecl] < nint , uint > Audio_GetID { get ; }
366369 public delegate * unmanaged[ Cdecl] < nint , uint > AudioAttachedOutput_GetID { get ; }
370+ public delegate * unmanaged[ Cdecl] < nint , uint > AudioFilter_GetID { get ; }
367371 public delegate * unmanaged[ Cdecl] < nint , uint > AudioFrontendOutput_GetID { get ; }
368372 public delegate * unmanaged[ Cdecl] < nint , uint > AudioOutput_GetID { get ; }
369373 public delegate * unmanaged[ Cdecl] < nint , uint > AudioWorldOutput_GetID { get ; }
@@ -540,6 +544,8 @@ public unsafe class SharedLibrary : ISharedLibrary
540544 public delegate * unmanaged[ Cdecl] < nint , Rotation , void > Entity_SetRotation { get ; }
541545 public delegate * unmanaged[ Cdecl] < nint , void > Event_Cancel { get ; }
542546 public delegate * unmanaged[ Cdecl] < nint , byte > Event_WasCancelled { get ; }
547+ public delegate * unmanaged[ Cdecl] < nint , void > FreeAudioArray { get ; }
548+ public delegate * unmanaged[ Cdecl] < nint , void > FreeAudioOutputArray { get ; }
543549 public delegate * unmanaged[ Cdecl] < nint , void > FreeBlipArray { get ; }
544550 public delegate * unmanaged[ Cdecl] < nint , void > FreeCharArray { get ; }
545551 public delegate * unmanaged[ Cdecl] < nint , void > FreeCheckpointArray { get ; }
@@ -713,6 +719,8 @@ public unsafe class SharedLibrary : ISharedLibrary
713719 private static uint Audio_GetIDFallback ( nint _audio ) => throw new Exceptions . OutdatedSdkException ( "Audio_GetID" , "Audio_GetID SDK method is outdated. Please update your module nuget" ) ;
714720 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate uint AudioAttachedOutput_GetIDDelegate ( nint _audioAttachedOutput ) ;
715721 private static uint AudioAttachedOutput_GetIDFallback ( nint _audioAttachedOutput ) => throw new Exceptions . OutdatedSdkException ( "AudioAttachedOutput_GetID" , "AudioAttachedOutput_GetID SDK method is outdated. Please update your module nuget" ) ;
722+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate uint AudioFilter_GetIDDelegate ( nint _audioFilter ) ;
723+ private static uint AudioFilter_GetIDFallback ( nint _audioFilter ) => throw new Exceptions . OutdatedSdkException ( "AudioFilter_GetID" , "AudioFilter_GetID SDK method is outdated. Please update your module nuget" ) ;
716724 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate uint AudioFrontendOutput_GetIDDelegate ( nint _audioFrontendOutput ) ;
717725 private static uint AudioFrontendOutput_GetIDFallback ( nint _audioFrontendOutput ) => throw new Exceptions . OutdatedSdkException ( "AudioFrontendOutput_GetID" , "AudioFrontendOutput_GetID SDK method is outdated. Please update your module nuget" ) ;
718726 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate uint AudioOutput_GetIDDelegate ( nint _audioOutput ) ;
@@ -1065,6 +1073,10 @@ public unsafe class SharedLibrary : ISharedLibrary
10651073 private static void Event_CancelFallback ( nint _event ) => throw new Exceptions . OutdatedSdkException ( "Event_Cancel" , "Event_Cancel SDK method is outdated. Please update your module nuget" ) ;
10661074 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate byte Event_WasCancelledDelegate ( nint _event ) ;
10671075 private static byte Event_WasCancelledFallback ( nint _event ) => throw new Exceptions . OutdatedSdkException ( "Event_WasCancelled" , "Event_WasCancelled SDK method is outdated. Please update your module nuget" ) ;
1076+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate void FreeAudioArrayDelegate ( nint _audioArray ) ;
1077+ private static void FreeAudioArrayFallback ( nint _audioArray ) => throw new Exceptions . OutdatedSdkException ( "FreeAudioArray" , "FreeAudioArray SDK method is outdated. Please update your module nuget" ) ;
1078+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate void FreeAudioOutputArrayDelegate ( nint _audioOutputArray ) ;
1079+ private static void FreeAudioOutputArrayFallback ( nint _audioOutputArray ) => throw new Exceptions . OutdatedSdkException ( "FreeAudioOutputArray" , "FreeAudioOutputArray SDK method is outdated. Please update your module nuget" ) ;
10681080 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate void FreeBlipArrayDelegate ( nint _blipArray ) ;
10691081 private static void FreeBlipArrayFallback ( nint _blipArray ) => throw new Exceptions . OutdatedSdkException ( "FreeBlipArray" , "FreeBlipArray SDK method is outdated. Please update your module nuget" ) ;
10701082 [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ] private delegate void FreeCharArrayDelegate ( nint charArray ) ;
@@ -1412,9 +1424,10 @@ private IntPtr GetUnmanagedPtr<T>(IDictionary<ulong, IntPtr> funcTable, ulong ha
14121424 public SharedLibrary ( Dictionary < ulong , IntPtr > funcTable )
14131425 {
14141426 if ( ! funcTable . TryGetValue ( 0 , out var capiHash ) ) Outdated = true ;
1415- else if ( capiHash == IntPtr . Zero || * ( ulong * ) capiHash != 16891803787576742001UL ) Outdated = true ;
1427+ else if ( capiHash == IntPtr . Zero || * ( ulong * ) capiHash != 1389624033249198436UL ) Outdated = true ;
14161428 Audio_GetID = ( delegate * unmanaged[ Cdecl] < nint , uint > ) GetUnmanagedPtr < Audio_GetIDDelegate > ( funcTable , 4464042055475980737UL , Audio_GetIDFallback ) ;
14171429 AudioAttachedOutput_GetID = ( delegate * unmanaged[ Cdecl] < nint , uint > ) GetUnmanagedPtr < AudioAttachedOutput_GetIDDelegate > ( funcTable , 17725794901805112189UL , AudioAttachedOutput_GetIDFallback ) ;
1430+ AudioFilter_GetID = ( delegate * unmanaged[ Cdecl] < nint , uint > ) GetUnmanagedPtr < AudioFilter_GetIDDelegate > ( funcTable , 8824535635529306325UL , AudioFilter_GetIDFallback ) ;
14181431 AudioFrontendOutput_GetID = ( delegate * unmanaged[ Cdecl] < nint , uint > ) GetUnmanagedPtr < AudioFrontendOutput_GetIDDelegate > ( funcTable , 11669001756876579861UL , AudioFrontendOutput_GetIDFallback ) ;
14191432 AudioOutput_GetID = ( delegate * unmanaged[ Cdecl] < nint , uint > ) GetUnmanagedPtr < AudioOutput_GetIDDelegate > ( funcTable , 2317043539516492557UL , AudioOutput_GetIDFallback ) ;
14201433 AudioWorldOutput_GetID = ( delegate * unmanaged[ Cdecl] < nint , uint > ) GetUnmanagedPtr < AudioWorldOutput_GetIDDelegate > ( funcTable , 6392405167754945669UL , AudioWorldOutput_GetIDFallback ) ;
@@ -1591,6 +1604,8 @@ public SharedLibrary(Dictionary<ulong, IntPtr> funcTable)
15911604 Entity_SetRotation = ( delegate * unmanaged[ Cdecl] < nint , Rotation , void > ) GetUnmanagedPtr < Entity_SetRotationDelegate > ( funcTable , 7991844148745066430UL , Entity_SetRotationFallback ) ;
15921605 Event_Cancel = ( delegate * unmanaged[ Cdecl] < nint , void > ) GetUnmanagedPtr < Event_CancelDelegate > ( funcTable , 4913360914395691424UL , Event_CancelFallback ) ;
15931606 Event_WasCancelled = ( delegate * unmanaged[ Cdecl] < nint , byte > ) GetUnmanagedPtr < Event_WasCancelledDelegate > ( funcTable , 15923635865693275395UL , Event_WasCancelledFallback ) ;
1607+ FreeAudioArray = ( delegate * unmanaged[ Cdecl] < nint , void > ) GetUnmanagedPtr < FreeAudioArrayDelegate > ( funcTable , 1942658126885529974UL , FreeAudioArrayFallback ) ;
1608+ FreeAudioOutputArray = ( delegate * unmanaged[ Cdecl] < nint , void > ) GetUnmanagedPtr < FreeAudioOutputArrayDelegate > ( funcTable , 2308827124743768700UL , FreeAudioOutputArrayFallback ) ;
15941609 FreeBlipArray = ( delegate * unmanaged[ Cdecl] < nint , void > ) GetUnmanagedPtr < FreeBlipArrayDelegate > ( funcTable , 12999641840922984330UL , FreeBlipArrayFallback ) ;
15951610 FreeCharArray = ( delegate * unmanaged[ Cdecl] < nint , void > ) GetUnmanagedPtr < FreeCharArrayDelegate > ( funcTable , 1943718755920302008UL , FreeCharArrayFallback ) ;
15961611 FreeCheckpointArray = ( delegate * unmanaged[ Cdecl] < nint , void > ) GetUnmanagedPtr < FreeCheckpointArrayDelegate > ( funcTable , 16715093567839162130UL , FreeCheckpointArrayFallback ) ;
0 commit comments