Mix_Chunk is not our problem.

This commit is contained in:
Ethan Lee 2014-01-27 16:39:09 -05:00
parent 4a37ca4387
commit 0fb37403cd

View file

@ -95,15 +95,6 @@ namespace SDL2
MUS_MODPLUG MUS_MODPLUG
} }
[StructLayout(LayoutKind.Sequential)]
public struct Mix_Chunk
{
public int allocated;
public IntPtr abuf; // Uint8*
public uint alen;
public byte volume;
}
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void MixFuncDelegate( public delegate void MixFuncDelegate(
IntPtr udata, // void* IntPtr udata, // void*
@ -212,7 +203,7 @@ namespace SDL2
/* IntPtr refers to a Mix_Chunk* */ /* IntPtr refers to a Mix_Chunk* */
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Mix_Chunk Mix_QuickLoad_RAW( public static extern IntPtr Mix_QuickLoad_RAW(
[In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.U1, SizeParamIndex = 1)] [In()] [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.U1, SizeParamIndex = 1)]
byte[] mem, byte[] mem,
uint len uint len