WaveCrop method updated
This commit is contained in:
parent
8ea7a93c79
commit
8f3263c311
2 changed files with 5 additions and 5 deletions
|
|
@ -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)]
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue