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