public static IntPtr GetContextsDevice(ContextHandle context) { return(Alc.GetContextsDevice(context.Handle)); }
public static void DestroyContext(ContextHandle context) { Alc.DestroyContext(context.Handle); }
public static ContextHandle GetCurrentContext() { return(new ContextHandle(Alc.sys_GetCurrentContext())); }
public static void ProcessContext(ContextHandle context) { Alc.ProcessContext(context.Handle); }
public static void SuspendContext(ContextHandle context) { Alc.SuspendContext(context.Handle); }
public static unsafe ContextHandle CreateContext(IntPtr device, int[] attriblist) { fixed(int *attrlist = attriblist) return(Alc.CreateContext(device, attrlist)); }
public static bool MakeContextCurrent(ContextHandle context) { return(Alc.MakeContextCurrent(context.Handle)); }
public static unsafe ContextHandle CreateContext([In] IntPtr device, [In] int *attrlist) { return(new ContextHandle(Alc.sys_CreateContext(device, attrlist))); }
public static void CaptureSamples <T>(IntPtr device, T[,,] buffer, int samples) where T : struct { Alc.CaptureSamples <T>(device, buffer.Address(0, 0, 0), samples); }
public static void CaptureSamples <T>(IntPtr device, T[] buffer, int samples) where T : struct { Alc.CaptureSamples <T>(device, ref buffer[0], samples); }
public static unsafe void GetInteger(IntPtr device, AlcGetInteger param, int size, int[] data) { fixed(int *data1 = data) Alc.GetInteger(device, param, size, data1); }
public static string GetString(IntPtr device, AlcGetString param) { return(Marshal.PtrToStringAnsi(Alc.GetStringPrivate(device, param))); }