From 8f3263c3111e0b72cacdf1b50303f9f3df78381f Mon Sep 17 00:00:00 2001
From: JupiterRider <60042618+JupiterRider@users.noreply.github.com>
Date: Fri, 6 Dec 2024 21:01:55 +0100
Subject: [PATCH] WaveCrop method updated
---
Raylib-cs/interop/Raylib.cs | 4 ++--
Raylib-cs/types/Raylib.Utils.cs | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs
index 16f46db..12af31d 100644
--- a/Raylib-cs/interop/Raylib.cs
+++ b/Raylib-cs/interop/Raylib.cs
@@ -2785,9 +2785,9 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Wave WaveCopy(Wave wave);
- /// Crop a wave to defined samples range
+ /// Crop a wave to defined frames range
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern void WaveCrop(Wave* wave, int initSample, int finalSample);
+ public static extern void WaveCrop(Wave* wave, int initFrame, int finalFrame);
/// Convert wave data to desired format
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
diff --git a/Raylib-cs/types/Raylib.Utils.cs b/Raylib-cs/types/Raylib.Utils.cs
index b85a6b5..60df969 100644
--- a/Raylib-cs/types/Raylib.Utils.cs
+++ b/Raylib-cs/types/Raylib.Utils.cs
@@ -1042,12 +1042,12 @@ public static unsafe partial class Raylib
}
}
- /// Crop a wave to defined samples range
- public static void WaveCrop(ref Wave wave, int initSample, int finalSample)
+ /// Crop a wave to defined frames range
+ public static void WaveCrop(ref Wave wave, int initFrame, int finalFrame)
{
fixed (Wave* p = &wave)
{
- WaveCrop(p, initSample, finalSample);
+ WaveCrop(p, initFrame, finalFrame);
}
}