mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-02-02 08:41:13 +00:00
overload openaudio to allow null
This commit is contained in:
parent
d03071653d
commit
705681d982
|
@ -5851,6 +5851,12 @@ namespace SDL2
|
||||||
out SDL_AudioSpec obtained
|
out SDL_AudioSpec obtained
|
||||||
);
|
);
|
||||||
|
|
||||||
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
public static extern int SDL_OpenAudio(
|
||||||
|
ref SDL_AudioSpec desired,
|
||||||
|
IntPtr obtained
|
||||||
|
);
|
||||||
|
|
||||||
/* uint refers to an SDL_AudioDeviceID */
|
/* uint refers to an SDL_AudioDeviceID */
|
||||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern uint SDL_OpenAudioDevice(
|
public static extern uint SDL_OpenAudioDevice(
|
||||||
|
|
Loading…
Reference in a new issue