Barotrauma Client Doc
OpenAL.Alc Class Reference

Public Member Functions

delegate void ErrorReasonCallback (string str)
 
static bool MakeContextCurrent (IntPtr context)
 
static void ProcessContext (IntPtr context)
 
static void SuspendContext (IntPtr context)
 
static void DestroyContext (IntPtr context)
 
static IntPtr GetCurrentContext ()
 
static IntPtr GetContextsDevice (IntPtr context)
 
static bool CloseDevice (IntPtr device)
 
static int GetError (IntPtr device)
 
static bool IsExtensionPresent (IntPtr device, string extname)
 
static IntPtr GetProcAddress (IntPtr device, string funcname)
 
static int GetEnumValue (IntPtr device, string enumname)
 
static void GetIntegerv (IntPtr device, int param, int size, IntPtr data)
 
static bool CaptureCloseDevice (IntPtr device)
 
static void CaptureStart (IntPtr device)
 
static void CaptureStop (IntPtr device)
 
static void CaptureSamples (IntPtr device, IntPtr buffer, int samples)
 

Static Public Member Functions

static void SetErrorReasonCallback (ErrorReasonCallback callback)
 
static IntPtr CreateContext (IntPtr device, int[] attrList)
 
static IntPtr OpenDevice (string deviceName)
 
static string GetErrorString (int errorCode)
 
static string GetString (IntPtr device, int param)
 
static IReadOnlyList< string > GetStringList (IntPtr device, int param)
 
static void GetInteger (IntPtr device, int param, out int data)
 
static IntPtr CaptureOpenDevice (string devicename, uint frequency, int format, int buffersize)
 

Static Public Attributes

const int False = 0
 
const int True = 1
 
const int Frequency = 0x1007
 
const int Refresh = 0x1008
 
const int Sync = 0x1009
 
const int MonoSources = 0x1010
 
const int StereoSources = 0x1011
 
const int NoError = False
 
const int InvalidDevice = 0xA001
 
const int InvalidContext = 0xA002
 
const int InvalidEnum = 0xA003
 
const int InvalidValue = 0xA004
 
const int OutOfMemory = 0xA005
 
const int DefaultDeviceSpecifier = 0x1004
 
const int DeviceSpecifier = 0x1005
 
const int Extensions = 0x1006
 
const int MajorVersion = 0x1000
 
const int MinorVersion = 0x1001
 
const int AttributesSize = 0x1002
 
const int AllAttributes = 0x1003
 
const int DefaultAllDevicesSpecifier = 0x1012
 
const int AllDevicesSpecifier = 0x1013
 
const int CaptureDeviceSpecifier = 0x310
 
const int CaptureDefaultDeviceSpecifier = 0x311
 
const int EnumCaptureSamples = 0x312
 
const int EnumConnected = 0x313
 
const int OutputDevicesSpecifier
 

Detailed Description

Definition at line 39 of file Alc.cs.

Member Function Documentation

◆ CaptureCloseDevice()

static bool OpenAL.Alc.CaptureCloseDevice ( IntPtr  device)

◆ CaptureOpenDevice()

static IntPtr OpenAL.Alc.CaptureOpenDevice ( string  devicename,
uint  frequency,
int  format,
int  buffersize 
)
static

Definition at line 275 of file Alc.cs.

◆ CaptureSamples()

static void OpenAL.Alc.CaptureSamples ( IntPtr  device,
IntPtr  buffer,
int  samples 
)

◆ CaptureStart()

static void OpenAL.Alc.CaptureStart ( IntPtr  device)

◆ CaptureStop()

static void OpenAL.Alc.CaptureStop ( IntPtr  device)

◆ CloseDevice()

static bool OpenAL.Alc.CloseDevice ( IntPtr  device)

◆ CreateContext()

static IntPtr OpenAL.Alc.CreateContext ( IntPtr  device,
int[]  attrList 
)
static

Definition at line 128 of file Alc.cs.

◆ DestroyContext()

static void OpenAL.Alc.DestroyContext ( IntPtr  context)

◆ ErrorReasonCallback()

delegate void OpenAL.Alc.ErrorReasonCallback ( string  str)

◆ GetContextsDevice()

static IntPtr OpenAL.Alc.GetContextsDevice ( IntPtr  context)

◆ GetCurrentContext()

static IntPtr OpenAL.Alc.GetCurrentContext ( )

◆ GetEnumValue()

static int OpenAL.Alc.GetEnumValue ( IntPtr  device,
string  enumname 
)

◆ GetError()

static int OpenAL.Alc.GetError ( IntPtr  device)

◆ GetErrorString()

static string OpenAL.Alc.GetErrorString ( int  errorCode)
static

Definition at line 178 of file Alc.cs.

◆ GetInteger()

static void OpenAL.Alc.GetInteger ( IntPtr  device,
int  param,
out int  data 
)
static

Definition at line 259 of file Alc.cs.

◆ GetIntegerv()

static void OpenAL.Alc.GetIntegerv ( IntPtr  device,
int  param,
int  size,
IntPtr  data 
)

◆ GetProcAddress()

static IntPtr OpenAL.Alc.GetProcAddress ( IntPtr  device,
string  funcname 
)

◆ GetString()

static string OpenAL.Alc.GetString ( IntPtr  device,
int  param 
)
static

Definition at line 215 of file Alc.cs.

◆ GetStringList()

static IReadOnlyList<string> OpenAL.Alc.GetStringList ( IntPtr  device,
int  param 
)
static

Definition at line 225 of file Alc.cs.

◆ IsExtensionPresent()

static bool OpenAL.Alc.IsExtensionPresent ( IntPtr  device,
string  extname 
)

◆ MakeContextCurrent()

static bool OpenAL.Alc.MakeContextCurrent ( IntPtr  context)

◆ OpenDevice()

static IntPtr OpenAL.Alc.OpenDevice ( string  deviceName)
static

Definition at line 157 of file Alc.cs.

◆ ProcessContext()

static void OpenAL.Alc.ProcessContext ( IntPtr  context)

◆ SetErrorReasonCallback()

static void OpenAL.Alc.SetErrorReasonCallback ( ErrorReasonCallback  callback)
static

Definition at line 78 of file Alc.cs.

◆ SuspendContext()

static void OpenAL.Alc.SuspendContext ( IntPtr  context)

Member Data Documentation

◆ AllAttributes

const int OpenAL.Alc.AllAttributes = 0x1003
static

Definition at line 105 of file Alc.cs.

◆ AllDevicesSpecifier

const int OpenAL.Alc.AllDevicesSpecifier = 0x1013
static

Definition at line 107 of file Alc.cs.

◆ AttributesSize

const int OpenAL.Alc.AttributesSize = 0x1002
static

Definition at line 104 of file Alc.cs.

◆ CaptureDefaultDeviceSpecifier

const int OpenAL.Alc.CaptureDefaultDeviceSpecifier = 0x311
static

Definition at line 109 of file Alc.cs.

◆ CaptureDeviceSpecifier

const int OpenAL.Alc.CaptureDeviceSpecifier = 0x310
static

Definition at line 108 of file Alc.cs.

◆ DefaultAllDevicesSpecifier

const int OpenAL.Alc.DefaultAllDevicesSpecifier = 0x1012
static

Definition at line 106 of file Alc.cs.

◆ DefaultDeviceSpecifier

const int OpenAL.Alc.DefaultDeviceSpecifier = 0x1004
static

Definition at line 99 of file Alc.cs.

◆ DeviceSpecifier

const int OpenAL.Alc.DeviceSpecifier = 0x1005
static

Definition at line 100 of file Alc.cs.

◆ EnumCaptureSamples

const int OpenAL.Alc.EnumCaptureSamples = 0x312
static

Definition at line 110 of file Alc.cs.

◆ EnumConnected

const int OpenAL.Alc.EnumConnected = 0x313
static

Definition at line 111 of file Alc.cs.

◆ Extensions

const int OpenAL.Alc.Extensions = 0x1006
static

Definition at line 101 of file Alc.cs.

◆ False

const int OpenAL.Alc.False = 0
static

Definition at line 86 of file Alc.cs.

◆ Frequency

const int OpenAL.Alc.Frequency = 0x1007
static

Definition at line 88 of file Alc.cs.

◆ InvalidContext

const int OpenAL.Alc.InvalidContext = 0xA002
static

Definition at line 95 of file Alc.cs.

◆ InvalidDevice

const int OpenAL.Alc.InvalidDevice = 0xA001
static

Definition at line 94 of file Alc.cs.

◆ InvalidEnum

const int OpenAL.Alc.InvalidEnum = 0xA003
static

Definition at line 96 of file Alc.cs.

◆ InvalidValue

const int OpenAL.Alc.InvalidValue = 0xA004
static

Definition at line 97 of file Alc.cs.

◆ MajorVersion

const int OpenAL.Alc.MajorVersion = 0x1000
static

Definition at line 102 of file Alc.cs.

◆ MinorVersion

const int OpenAL.Alc.MinorVersion = 0x1001
static

Definition at line 103 of file Alc.cs.

◆ MonoSources

const int OpenAL.Alc.MonoSources = 0x1010
static

Definition at line 91 of file Alc.cs.

◆ NoError

const int OpenAL.Alc.NoError = False
static

Definition at line 93 of file Alc.cs.

◆ OutOfMemory

const int OpenAL.Alc.OutOfMemory = 0xA005
static

Definition at line 98 of file Alc.cs.

◆ OutputDevicesSpecifier

const int OpenAL.Alc.OutputDevicesSpecifier
static
Initial value:
=
const int AllDevicesSpecifier
Definition: Alc.cs:107

Definition at line 114 of file Alc.cs.

◆ Refresh

const int OpenAL.Alc.Refresh = 0x1008
static

Definition at line 89 of file Alc.cs.

◆ StereoSources

const int OpenAL.Alc.StereoSources = 0x1011
static

Definition at line 92 of file Alc.cs.

◆ Sync

const int OpenAL.Alc.Sync = 0x1009
static

Definition at line 90 of file Alc.cs.

◆ True

const int OpenAL.Alc.True = 1
static

Definition at line 87 of file Alc.cs.