mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-25 01:51:04 +00:00
Make Mix_LoadWAV_RW public
It works just fine and other extension libraries have this RW function public too. Why does this one have to be private/internal?
This commit is contained in:
parent
ed817aad60
commit
419a25e86d
|
@ -176,15 +176,16 @@ namespace SDL2
|
||||||
* THIS IS AN RWops FUNCTION!
|
* THIS IS AN RWops FUNCTION!
|
||||||
*/
|
*/
|
||||||
/* IntPtr refers to a Mix_Chunk* */
|
/* IntPtr refers to a Mix_Chunk* */
|
||||||
[DllImport(nativeLibName, EntryPoint = "Mix_LoadWAV_RW", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
private static extern IntPtr INTERNAL_Mix_LoadWAV_RW(
|
public static extern IntPtr Mix_LoadWAV_RW(
|
||||||
IntPtr src,
|
IntPtr src,
|
||||||
int freesrc
|
int freesrc
|
||||||
);
|
);
|
||||||
|
|
||||||
public static IntPtr Mix_LoadWAV(string file)
|
public static IntPtr Mix_LoadWAV(string file)
|
||||||
{
|
{
|
||||||
IntPtr rwops = SDL.INTERNAL_SDL_RWFromFile(file, "rb");
|
IntPtr rwops = SDL.INTERNAL_SDL_RWFromFile(file, "rb");
|
||||||
return INTERNAL_Mix_LoadWAV_RW(rwops, 1);
|
return Mix_LoadWAV_RW(rwops, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* IntPtr refers to a Mix_Music* */
|
/* IntPtr refers to a Mix_Music* */
|
||||||
|
|
Loading…
Reference in a new issue