From 705681d982ed9ed3c237aa373d16c5505c134c0c Mon Sep 17 00:00:00 2001 From: Jack Mott Date: Thu, 19 Jan 2017 15:02:36 -0600 Subject: [PATCH] overload openaudio to allow null --- src/SDL2.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SDL2.cs b/src/SDL2.cs index 5165713..583999b 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -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)]