Barotrauma Client Doc
OpenAL.Al Class Reference

Public Member Functions

static void Enable (int capability)
 
static void Disable (int capability)
 
static bool IsEnabled (int capability)
 
static void GetBooleanv (int param, out bool data)
 
static void GetIntegerv (int param, out int data)
 
static void GetFloatv (int param, out float data)
 
static void GetDoublev (int param, out double data)
 
static bool GetBoolean (int param)
 
static int GetInteger (int param)
 
static float GetFloat (int param)
 
static double GetDouble (int param)
 
static int GetError ()
 
static bool IsExtensionPresent (string extname)
 
static IntPtr GetProcAddress (string fname)
 
static int GetEnumValue (string ename)
 
static void Listenerf (int param, float value)
 
static void Listener3f (int param, float value1, float value2, float value3)
 
static void Listenerfv (int param, float[] values)
 
static void GetListenerf (int param, out float value)
 
static void GetListener3f (int param, out float value1, out float value2, out float value3)
 
static void DeleteSources (int n, uint[] sources)
 
static bool IsSource (uint sid)
 
static void Sourcef (uint sid, int param, float value)
 
static void Source3f (uint sid, int param, float value1, float value2, float value3)
 
static void Sourcefv (uint sid, int param, float[] values)
 
static void Sourcei (uint sid, int param, int value)
 
static void Source3i (uint sid, int param, int value1, int value2, int value3)
 
static void Sourceiv (uint sid, int param, int[] values)
 
static void GetSourcef (uint sid, int param, out float value)
 
static void GetSource3f (uint sid, int param, out float value1, out float value2, out float value3)
 
static void GetSourcei (uint sid, int param, out int value)
 
static void GetSource3i (uint sid, int param, out int value1, out int value2, out int value3)
 
static void SourcePlayv (int ns, uint[] sids)
 
static void SourceStopv (int ns, uint[] sids)
 
static void SourceRewindv (int ns, uint[] sids)
 
static void SourcePausev (int ns, uint[] sids)
 
static void SourcePlay (uint sid)
 
static void SourceStop (uint sid)
 
static void SourceRewind (uint sid)
 
static void SourcePause (uint sid)
 
static void SourceQueueBuffers (uint sid, int numEntries, uint[] bids)
 
static void SourceUnqueueBuffers (uint sid, int numEntries, uint[] bids)
 
static void DeleteBuffers (int n, uint[] buffers)
 
static bool IsBuffer (uint bid)
 
static void BufferData (uint bid, int format, IntPtr data, int size, int freq)
 
static void Bufferi (uint bid, int param, int value)
 
static void GetBufferi (uint bid, int param, out int value)
 
static void DopplerFactor (float value)
 
static void DopplerVelocity (float value)
 
static void SpeedOfSound (float value)
 
static void DistanceModel (int distanceModel)
 

Static Public Member Functions

static string GetString (int param)
 
static string GetErrorString (int error)
 
static void GetListenerfv (int param, out float[] values)
 
static void GenSources (int n, out uint[] sources)
 
static void GenSource (out uint source)
 
static void DeleteSource (uint source)
 
static void GetSourcefv (uint sid, int param, out float[] values)
 
static void GetSourceiv (uint sid, int param, out int[] values)
 
static void SourceQueueBuffer (uint sid, uint bid)
 
static void GenBuffers (int n, out uint[] buffers)
 
static void GenBuffer (out uint buffer)
 
static void DeleteBuffer (uint buffer)
 
static void BufferData< T > (uint bid, int format, T[] data, int len, int freq)
 

Static Public Attributes

const int None = 0
 
const int False = 0
 
const int True = 1
 
const int SourceRelative = 0x202
 
const int ConeInnerAngle = 0x1001
 
const int ConeOuterAngle = 0x1002
 
const int Pitch = 0x1003
 
const int Position = 0x1004
 
const int Direction = 0x1005
 
const int Velocity = 0x1006
 
const int Looping = 0x1007
 
const int Buffer = 0x1009
 
const int Gain = 0x100A
 
const int MinGain = 0x100D
 
const int MaxGain = 0x100E
 
const int Orientation = 0x100F
 
const int SourceState = 0x1010
 
const int Initial = 0x1011
 
const int Playing = 0x1012
 
const int Paused = 0x1013
 
const int Stopped = 0x1014
 
const int BuffersQueued = 0x1015
 
const int BuffersProcessed = 0x1016
 
const int SecOffset = 0x1024
 
const int SampleOffset = 0x1025
 
const int ByteOffset = 0x1026
 
const int SourceType = 0x1027
 
const int Static = 0x1028
 
const int Streaming = 0x1029
 
const int Undetermined = 0x1030
 
const int FormatMono8 = 0x1100
 
const int FormatMono16 = 0x1101
 
const int FormatStereo8 = 0x1102
 
const int FormatStereo16 = 0x1103
 
const int ReferenceDistance = 0x1020
 
const int RolloffFactor = 0x1021
 
const int ConeOuterGain = 0x1022
 
const int MaxDistance = 0x1023
 
const int Frequency = 0x2001
 
const int Bits = 0x2002
 
const int Channels = 0x2003
 
const int Size = 0x2004
 
const int Unused = 0x2010
 
const int Pending = 0x2011
 
const int Processed = 0x2012
 
const int NoError = False
 
const int InvalidName = 0xA001
 
const int InvalidEnum = 0xA002
 
const int InvalidValue = 0xA003
 
const int InvalidOperation = 0xA004
 
const int OutOfMemory = 0xA005
 
const int Vendor = 0xB001
 
const int Version = 0xB002
 
const int Renderer = 0xB003
 
const int Extensions = 0xB004
 
const int EnumDopplerFactor = 0xC000
 
const int EnumDopplerVelocity = 0xC001
 
const int EnumSpeedOfSound = 0xC003
 
const int EnumDistanceModel = 0xD000
 
const int InverseDistance = 0xD001
 
const int InverseDistanceClamped = 0xD002
 
const int LinearDistance = 0xD003
 
const int LinearDistanceClamped = 0xD004
 
const int ExponentDistance = 0xD005
 
const int ExponentDistanceClamped = 0xD006
 

Detailed Description

Definition at line 37 of file Al.cs.

Member Function Documentation

◆ BufferData()

static void OpenAL.Al.BufferData ( uint  bid,
int  format,
IntPtr  data,
int  size,
int  freq 
)

◆ BufferData< T >()

static void OpenAL.Al.BufferData< T > ( uint  bid,
int  format,
T[]  data,
int  len,
int  freq 
)
static

Definition at line 440 of file Al.cs.

◆ Bufferi()

static void OpenAL.Al.Bufferi ( uint  bid,
int  param,
int  value 
)

◆ DeleteBuffer()

static void OpenAL.Al.DeleteBuffer ( uint  buffer)
static

◆ DeleteBuffers()

static void OpenAL.Al.DeleteBuffers ( int  n,
uint[]  buffers 
)

◆ DeleteSource()

static void OpenAL.Al.DeleteSource ( uint  source)
static

◆ DeleteSources()

static void OpenAL.Al.DeleteSources ( int  n,
uint[]  sources 
)

◆ Disable()

static void OpenAL.Al.Disable ( int  capability)

◆ DistanceModel()

static void OpenAL.Al.DistanceModel ( int  distanceModel)

◆ DopplerFactor()

static void OpenAL.Al.DopplerFactor ( float  value)

◆ DopplerVelocity()

static void OpenAL.Al.DopplerVelocity ( float  value)

◆ Enable()

static void OpenAL.Al.Enable ( int  capability)

◆ GenBuffer()

static void OpenAL.Al.GenBuffer ( out uint  buffer)
static

Definition at line 423 of file Al.cs.

◆ GenBuffers()

static void OpenAL.Al.GenBuffers ( int  n,
out uint[]  buffers 
)
static

Definition at line 414 of file Al.cs.

◆ GenSource()

static void OpenAL.Al.GenSource ( out uint  source)
static

Definition at line 251 of file Al.cs.

◆ GenSources()

static void OpenAL.Al.GenSources ( int  n,
out uint[]  sources 
)
static

Definition at line 242 of file Al.cs.

◆ GetBoolean()

static bool OpenAL.Al.GetBoolean ( int  param)

◆ GetBooleanv()

static void OpenAL.Al.GetBooleanv ( int  param,
out bool  data 
)

◆ GetBufferi()

static void OpenAL.Al.GetBufferi ( uint  bid,
int  param,
out int  value 
)

◆ GetDouble()

static double OpenAL.Al.GetDouble ( int  param)

◆ GetDoublev()

static void OpenAL.Al.GetDoublev ( int  param,
out double  data 
)

◆ GetEnumValue()

static int OpenAL.Al.GetEnumValue ( string  ename)

◆ GetError()

static int OpenAL.Al.GetError ( )

◆ GetErrorString()

static string OpenAL.Al.GetErrorString ( int  error)
static

Definition at line 164 of file Al.cs.

◆ GetFloat()

static float OpenAL.Al.GetFloat ( int  param)

◆ GetFloatv()

static void OpenAL.Al.GetFloatv ( int  param,
out float  data 
)

◆ GetInteger()

static int OpenAL.Al.GetInteger ( int  param)

◆ GetIntegerv()

static void OpenAL.Al.GetIntegerv ( int  param,
out int  data 
)

◆ GetListener3f()

static void OpenAL.Al.GetListener3f ( int  param,
out float  value1,
out float  value2,
out float  value3 
)

◆ GetListenerf()

static void OpenAL.Al.GetListenerf ( int  param,
out float  value 
)

◆ GetListenerfv()

static void OpenAL.Al.GetListenerfv ( int  param,
out float[]  values 
)
static

Definition at line 212 of file Al.cs.

◆ GetProcAddress()

static IntPtr OpenAL.Al.GetProcAddress ( string  fname)

◆ GetSource3f()

static void OpenAL.Al.GetSource3f ( uint  sid,
int  param,
out float  value1,
out float  value2,
out float  value3 
)

◆ GetSource3i()

static void OpenAL.Al.GetSource3i ( uint  sid,
int  param,
out int  value1,
out int  value2,
out int  value3 
)

◆ GetSourcef()

static void OpenAL.Al.GetSourcef ( uint  sid,
int  param,
out float  value 
)

◆ GetSourcefv()

static void OpenAL.Al.GetSourcefv ( uint  sid,
int  param,
out float[]  values 
)
static

Definition at line 292 of file Al.cs.

◆ GetSourcei()

static void OpenAL.Al.GetSourcei ( uint  sid,
int  param,
out int  value 
)

◆ GetSourceiv()

static void OpenAL.Al.GetSourceiv ( uint  sid,
int  param,
out int[]  values 
)
static

Definition at line 338 of file Al.cs.

◆ GetString()

static string OpenAL.Al.GetString ( int  param)
static

◆ IsBuffer()

static bool OpenAL.Al.IsBuffer ( uint  bid)

◆ IsEnabled()

static bool OpenAL.Al.IsEnabled ( int  capability)

◆ IsExtensionPresent()

static bool OpenAL.Al.IsExtensionPresent ( string  extname)

◆ IsSource()

static bool OpenAL.Al.IsSource ( uint  sid)

◆ Listener3f()

static void OpenAL.Al.Listener3f ( int  param,
float  value1,
float  value2,
float  value3 
)

◆ Listenerf()

static void OpenAL.Al.Listenerf ( int  param,
float  value 
)

◆ Listenerfv()

static void OpenAL.Al.Listenerfv ( int  param,
float[]  values 
)

◆ Source3f()

static void OpenAL.Al.Source3f ( uint  sid,
int  param,
float  value1,
float  value2,
float  value3 
)

◆ Source3i()

static void OpenAL.Al.Source3i ( uint  sid,
int  param,
int  value1,
int  value2,
int  value3 
)

◆ Sourcef()

static void OpenAL.Al.Sourcef ( uint  sid,
int  param,
float  value 
)

◆ Sourcefv()

static void OpenAL.Al.Sourcefv ( uint  sid,
int  param,
float[]  values 
)

◆ Sourcei()

static void OpenAL.Al.Sourcei ( uint  sid,
int  param,
int  value 
)

◆ Sourceiv()

static void OpenAL.Al.Sourceiv ( uint  sid,
int  param,
int[]  values 
)

◆ SourcePause()

static void OpenAL.Al.SourcePause ( uint  sid)

◆ SourcePausev()

static void OpenAL.Al.SourcePausev ( int  ns,
uint[]  sids 
)

◆ SourcePlay()

static void OpenAL.Al.SourcePlay ( uint  sid)

◆ SourcePlayv()

static void OpenAL.Al.SourcePlayv ( int  ns,
uint[]  sids 
)

◆ SourceQueueBuffer()

static void OpenAL.Al.SourceQueueBuffer ( uint  sid,
uint  bid 
)
static

Definition at line 402 of file Al.cs.

◆ SourceQueueBuffers()

static void OpenAL.Al.SourceQueueBuffers ( uint  sid,
int  numEntries,
uint[]  bids 
)

◆ SourceRewind()

static void OpenAL.Al.SourceRewind ( uint  sid)

◆ SourceRewindv()

static void OpenAL.Al.SourceRewindv ( int  ns,
uint[]  sids 
)

◆ SourceStop()

static void OpenAL.Al.SourceStop ( uint  sid)

◆ SourceStopv()

static void OpenAL.Al.SourceStopv ( int  ns,
uint[]  sids 
)

◆ SourceUnqueueBuffers()

static void OpenAL.Al.SourceUnqueueBuffers ( uint  sid,
int  numEntries,
uint[]  bids 
)

◆ SpeedOfSound()

static void OpenAL.Al.SpeedOfSound ( float  value)

Member Data Documentation

◆ Bits

const int OpenAL.Al.Bits = 0x2002
static

Definition at line 92 of file Al.cs.

◆ Buffer

const int OpenAL.Al.Buffer = 0x1009
static

Definition at line 64 of file Al.cs.

◆ BuffersProcessed

const int OpenAL.Al.BuffersProcessed = 0x1016
static

Definition at line 75 of file Al.cs.

◆ BuffersQueued

const int OpenAL.Al.BuffersQueued = 0x1015
static

Definition at line 74 of file Al.cs.

◆ ByteOffset

const int OpenAL.Al.ByteOffset = 0x1026
static

Definition at line 78 of file Al.cs.

◆ Channels

const int OpenAL.Al.Channels = 0x2003
static

Definition at line 93 of file Al.cs.

◆ ConeInnerAngle

const int OpenAL.Al.ConeInnerAngle = 0x1001
static

Definition at line 57 of file Al.cs.

◆ ConeOuterAngle

const int OpenAL.Al.ConeOuterAngle = 0x1002
static

Definition at line 58 of file Al.cs.

◆ ConeOuterGain

const int OpenAL.Al.ConeOuterGain = 0x1022
static

Definition at line 89 of file Al.cs.

◆ Direction

const int OpenAL.Al.Direction = 0x1005
static

Definition at line 61 of file Al.cs.

◆ EnumDistanceModel

const int OpenAL.Al.EnumDistanceModel = 0xD000
static

Definition at line 111 of file Al.cs.

◆ EnumDopplerFactor

const int OpenAL.Al.EnumDopplerFactor = 0xC000
static

Definition at line 108 of file Al.cs.

◆ EnumDopplerVelocity

const int OpenAL.Al.EnumDopplerVelocity = 0xC001
static

Definition at line 109 of file Al.cs.

◆ EnumSpeedOfSound

const int OpenAL.Al.EnumSpeedOfSound = 0xC003
static

Definition at line 110 of file Al.cs.

◆ ExponentDistance

const int OpenAL.Al.ExponentDistance = 0xD005
static

Definition at line 116 of file Al.cs.

◆ ExponentDistanceClamped

const int OpenAL.Al.ExponentDistanceClamped = 0xD006
static

Definition at line 117 of file Al.cs.

◆ Extensions

const int OpenAL.Al.Extensions = 0xB004
static

Definition at line 107 of file Al.cs.

◆ False

const int OpenAL.Al.False = 0
static

Definition at line 54 of file Al.cs.

◆ FormatMono16

const int OpenAL.Al.FormatMono16 = 0x1101
static

Definition at line 84 of file Al.cs.

◆ FormatMono8

const int OpenAL.Al.FormatMono8 = 0x1100
static

Definition at line 83 of file Al.cs.

◆ FormatStereo16

const int OpenAL.Al.FormatStereo16 = 0x1103
static

Definition at line 86 of file Al.cs.

◆ FormatStereo8

const int OpenAL.Al.FormatStereo8 = 0x1102
static

Definition at line 85 of file Al.cs.

◆ Frequency

const int OpenAL.Al.Frequency = 0x2001
static

Definition at line 91 of file Al.cs.

◆ Gain

const int OpenAL.Al.Gain = 0x100A
static

Definition at line 65 of file Al.cs.

◆ Initial

const int OpenAL.Al.Initial = 0x1011
static

Definition at line 70 of file Al.cs.

◆ InvalidEnum

const int OpenAL.Al.InvalidEnum = 0xA002
static

Definition at line 100 of file Al.cs.

◆ InvalidName

const int OpenAL.Al.InvalidName = 0xA001
static

Definition at line 99 of file Al.cs.

◆ InvalidOperation

const int OpenAL.Al.InvalidOperation = 0xA004
static

Definition at line 102 of file Al.cs.

◆ InvalidValue

const int OpenAL.Al.InvalidValue = 0xA003
static

Definition at line 101 of file Al.cs.

◆ InverseDistance

const int OpenAL.Al.InverseDistance = 0xD001
static

Definition at line 112 of file Al.cs.

◆ InverseDistanceClamped

const int OpenAL.Al.InverseDistanceClamped = 0xD002
static

Definition at line 113 of file Al.cs.

◆ LinearDistance

const int OpenAL.Al.LinearDistance = 0xD003
static

Definition at line 114 of file Al.cs.

◆ LinearDistanceClamped

const int OpenAL.Al.LinearDistanceClamped = 0xD004
static

Definition at line 115 of file Al.cs.

◆ Looping

const int OpenAL.Al.Looping = 0x1007
static

Definition at line 63 of file Al.cs.

◆ MaxDistance

const int OpenAL.Al.MaxDistance = 0x1023
static

Definition at line 90 of file Al.cs.

◆ MaxGain

const int OpenAL.Al.MaxGain = 0x100E
static

Definition at line 67 of file Al.cs.

◆ MinGain

const int OpenAL.Al.MinGain = 0x100D
static

Definition at line 66 of file Al.cs.

◆ NoError

const int OpenAL.Al.NoError = False
static

Definition at line 98 of file Al.cs.

◆ None

const int OpenAL.Al.None = 0
static

Definition at line 53 of file Al.cs.

◆ Orientation

const int OpenAL.Al.Orientation = 0x100F
static

Definition at line 68 of file Al.cs.

◆ OutOfMemory

const int OpenAL.Al.OutOfMemory = 0xA005
static

Definition at line 103 of file Al.cs.

◆ Paused

const int OpenAL.Al.Paused = 0x1013
static

Definition at line 72 of file Al.cs.

◆ Pending

const int OpenAL.Al.Pending = 0x2011
static

Definition at line 96 of file Al.cs.

◆ Pitch

const int OpenAL.Al.Pitch = 0x1003
static

Definition at line 59 of file Al.cs.

◆ Playing

const int OpenAL.Al.Playing = 0x1012
static

Definition at line 71 of file Al.cs.

◆ Position

const int OpenAL.Al.Position = 0x1004
static

Definition at line 60 of file Al.cs.

◆ Processed

const int OpenAL.Al.Processed = 0x2012
static

Definition at line 97 of file Al.cs.

◆ ReferenceDistance

const int OpenAL.Al.ReferenceDistance = 0x1020
static

Definition at line 87 of file Al.cs.

◆ Renderer

const int OpenAL.Al.Renderer = 0xB003
static

Definition at line 106 of file Al.cs.

◆ RolloffFactor

const int OpenAL.Al.RolloffFactor = 0x1021
static

Definition at line 88 of file Al.cs.

◆ SampleOffset

const int OpenAL.Al.SampleOffset = 0x1025
static

Definition at line 77 of file Al.cs.

◆ SecOffset

const int OpenAL.Al.SecOffset = 0x1024
static

Definition at line 76 of file Al.cs.

◆ Size

const int OpenAL.Al.Size = 0x2004
static

Definition at line 94 of file Al.cs.

◆ SourceRelative

const int OpenAL.Al.SourceRelative = 0x202
static

Definition at line 56 of file Al.cs.

◆ SourceState

const int OpenAL.Al.SourceState = 0x1010
static

Definition at line 69 of file Al.cs.

◆ SourceType

const int OpenAL.Al.SourceType = 0x1027
static

Definition at line 79 of file Al.cs.

◆ Static

const int OpenAL.Al.Static = 0x1028
static

Definition at line 80 of file Al.cs.

◆ Stopped

const int OpenAL.Al.Stopped = 0x1014
static

Definition at line 73 of file Al.cs.

◆ Streaming

const int OpenAL.Al.Streaming = 0x1029
static

Definition at line 81 of file Al.cs.

◆ True

const int OpenAL.Al.True = 1
static

Definition at line 55 of file Al.cs.

◆ Undetermined

const int OpenAL.Al.Undetermined = 0x1030
static

Definition at line 82 of file Al.cs.

◆ Unused

const int OpenAL.Al.Unused = 0x2010
static

Definition at line 95 of file Al.cs.

◆ Velocity

const int OpenAL.Al.Velocity = 0x1006
static

Definition at line 62 of file Al.cs.

◆ Vendor

const int OpenAL.Al.Vendor = 0xB001
static

Definition at line 104 of file Al.cs.

◆ Version

const int OpenAL.Al.Version = 0xB002
static

Definition at line 105 of file Al.cs.