Quick compile fix, SDL_audio paaaaart twoooooish
This commit is contained in:
parent
b118961923
commit
37bce8c1aa
13
src/SDL2.cs
13
src/SDL2.cs
@ -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 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_BITSIZE = 0xFF;
|
||||||
public const ushort SDL_AUDIO_MASK_DATATYPE = (1 << 8);
|
public const ushort SDL_AUDIO_MASK_DATATYPE = (1 << 8);
|
||||||
@ -3742,7 +3743,7 @@ namespace SDL2
|
|||||||
public int len_mult;
|
public int len_mult;
|
||||||
public double len_ratio;
|
public double len_ratio;
|
||||||
// FIXME: Uhhhcrap, how do we deal with fn ptrs in C#...
|
// 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;
|
public int filter_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3760,6 +3761,16 @@ namespace SDL2
|
|||||||
public IntPtr userdata; // void*
|
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
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user