Watch
2
0
Fork
You've already forked raylib-cs
0

WaveCrop method updated

This commit is contained in:
JupiterRider 2024-12-06 21:01:55 +01:00
commit 8f3263c311
2 changed files with 5 additions and 5 deletions

View file

@ -2785,9 +2785,9 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Wave WaveCopy(Wave wave); public static extern Wave WaveCopy(Wave wave);
/// <summary>Crop a wave to defined samples range</summary> /// <summary>Crop a wave to defined frames range</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [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);
/// <summary>Convert wave data to desired format</summary> /// <summary>Convert wave data to desired format</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]

View file

@ -1042,12 +1042,12 @@ public static unsafe partial class Raylib
} }
} }
/// <summary>Crop a wave to defined samples range</summary> /// <summary>Crop a wave to defined frames range</summary>
public static void WaveCrop(ref Wave wave, int initSample, int finalSample) public static void WaveCrop(ref Wave wave, int initFrame, int finalFrame)
{ {
fixed (Wave* p = &wave) fixed (Wave* p = &wave)
{ {
WaveCrop(p, initSample, finalSample); WaveCrop(p, initFrame, finalFrame);
} }
} }