Quick compile fix, SDL_audio paaaaart twoooooish

This commit is contained in:
Ethan Lee 2013-04-06 08:37:57 -04:00
parent b118961923
commit 37bce8c1aa

View file

@ -3645,6 +3645,7 @@ namespace SDL2
*/
/* FIXME: Boy, I really wish I could typedef ushort SDL_AudioFormat! */
/* FIXME: Boy, I really wish I could typedef uint SDL_AudioDeviceID! */
public const ushort SDL_AUDIO_MASK_BITSIZE = 0xFF;
public const ushort SDL_AUDIO_MASK_DATATYPE = (1 << 8);
@ -3742,7 +3743,7 @@ namespace SDL2
public int len_mult;
public double len_ratio;
// FIXME: Uhhhcrap, how do we deal with fn ptrs in C#...
public fixed IntPtr filters[10]; // SDL_AudioFilter???
public fixed uint/*Ptr*/ filters[10]; // SDL_AudioFilter???
public int filter_index;
}
@ -3760,6 +3761,16 @@ namespace SDL2
public IntPtr userdata; // void*
}
/* dev refers to an SDL_AudioDeviceID */
[DllImport(nativeLibName)]
public static extern int SDL_AudioDeviceConnected(uint dev);
[DllImport(nativeLibName)]
public static extern int SDL_AudioInit(
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
string driver_name
);
#endregion
}
}