2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-03 11:09:40 -04:00

Fix AudioCallback usage

This commit is contained in:
ChrisDill 2023-04-15 11:14:50 +01:00
parent 7e50d25e71
commit 2e19fd9889

View File

@ -2655,33 +2655,33 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void SetAudioStreamCallback(
AudioStream stream,
delegate* unmanaged[Cdecl]<sbyte*, uint, void> callback
delegate* unmanaged[Cdecl]<void*, uint, void> callback
);
/// <summary>Attach audio stream processor to stream</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void AttachAudioStreamProcessor(
AudioStream stream,
delegate* unmanaged[Cdecl]<sbyte*, uint, void> processor
delegate* unmanaged[Cdecl]<void*, uint, void> processor
);
/// <summary>Detach audio stream processor from stream</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void DetachAudioStreamProcessor(
AudioStream stream,
delegate* unmanaged[Cdecl]<sbyte*, uint, void> processor
delegate* unmanaged[Cdecl]<void*, uint, void> processor
);
/// <summary>Attach audio stream processor to the entire audio pipeline</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void AttachAudioMixedProcessor(
delegate* unmanaged[Cdecl]<sbyte*, uint, void> processor
delegate* unmanaged[Cdecl]<void*, uint, void> processor
);
/// <summary>Detach audio stream processor from the entire audio pipeline</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void DetachAudioMixedProcessor(
delegate* unmanaged[Cdecl]<sbyte*, uint, void> processor
delegate* unmanaged[Cdecl]<void*, uint, void> processor
);
}
}