overload openaudio to allow null

pull/100/merge
Jack Mott 2017-01-19 15:02:36 -06:00 committed by Ethan Lee
parent d03071653d
commit 705681d982
1 changed files with 6 additions and 0 deletions

View File

@ -5850,6 +5850,12 @@ namespace SDL2
ref SDL_AudioSpec desired,
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 */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]