diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs
index 432e7bd..00e7642 100644
--- a/Raylib-cs/interop/Raylib.cs
+++ b/Raylib-cs/interop/Raylib.cs
@@ -1389,7 +1389,7 @@ namespace Raylib_cs
/// Load colors palette from image as a Color array (RGBA - 32bit)
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern Color* LoadImagePalette(Image image, int maxPaletteSize, int* colorsCount);
+ public static extern Color* LoadImagePalette(Image image, int maxPaletteSize, int* colorCount);
/// Unload color data loaded with LoadImageColors()
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@@ -2278,7 +2278,7 @@ namespace Raylib_cs
/// Load model animations from file
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern ModelAnimation* LoadModelAnimations(sbyte* fileName, uint* animsCount);
+ public static extern ModelAnimation* LoadModelAnimations(sbyte* fileName, uint* animCount);
/// Update model animation pose
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@@ -2387,7 +2387,7 @@ namespace Raylib_cs
/// Update sound buffer with new data
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern void UpdateSound(Sound sound, void* data, int samplesCount);
+ public static extern void UpdateSound(Sound sound, void* data, int sampleCount);
/// Unload wave data
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@@ -2548,7 +2548,7 @@ namespace Raylib_cs
/// Update audio stream buffers with data
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern void UpdateAudioStream(AudioStream stream, void* data, int samplesCount);
+ public static extern void UpdateAudioStream(AudioStream stream, void* data, int frameCount);
/// Check if any audio stream buffers requires refill
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
diff --git a/Raylib-cs/types/Raylib.Utils.cs b/Raylib-cs/types/Raylib.Utils.cs
index 90728f5..65053bf 100644
--- a/Raylib-cs/types/Raylib.Utils.cs
+++ b/Raylib-cs/types/Raylib.Utils.cs
@@ -684,19 +684,19 @@ namespace Raylib_cs
}
/// Load model animations from file
- public static ReadOnlySpan LoadModelAnimations(string fileName, ref uint animsCount)
+ public static ReadOnlySpan LoadModelAnimations(string fileName, ref uint animCount)
{
using var str1 = fileName.ToUTF8Buffer();
- fixed (uint* p = &animsCount)
+ fixed (uint* p = &animCount)
{
- var model = LoadModelAnimations(str1.AsPointer(), p);
+ ModelAnimation* modelAnimations = LoadModelAnimations(str1.AsPointer(), p);
- if ((IntPtr)model == IntPtr.Zero)
+ if ((IntPtr)modelAnimations == IntPtr.Zero)
{
throw new ApplicationException("Failed to load animation");
}
- return new ReadOnlySpan(model, (int)animsCount);
+ return new ReadOnlySpan(modelAnimations, (int)animCount);
}
}