zenilib: zenilib/jni/external/zenilib/zeni_audio/AL/al.h File Reference

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Typedefs | Functions
al.h File Reference

Go to the source code of this file.

## Macros

#define | AL_API extern
#define | AL_APIENTRY
#define | AL_BITS 0x2002
#define | AL_BUFFER 0x1009
#define | AL_BUFFERS_PROCESSED 0x1016
#define | AL_BUFFERS_QUEUED 0x1015
#define | AL_BYTE_OFFSET 0x1026
#define | AL_CHANNELS 0x2003
#define | AL_CONE_INNER_ANGLE 0x1001
#define | AL_CONE_OUTER_ANGLE 0x1002
#define | AL_CONE_OUTER_GAIN 0x1022
#define | AL_DIRECTION 0x1005
#define | AL_DISTANCE_MODEL 0xD000
#define | AL_DOPPLER_FACTOR 0xC000
#define | AL_DOPPLER_VELOCITY 0xC001
#define | AL_EXPONENT_DISTANCE 0xD005
#define | AL_EXPONENT_DISTANCE_CLAMPED 0xD006
#define | AL_EXTENSIONS 0xB004
#define | AL_FALSE 0
#define | AL_FORMAT_MONO16 0x1101
#define | AL_FORMAT_MONO8 0x1100
#define | AL_FORMAT_STEREO16 0x1103
#define | AL_FORMAT_STEREO8 0x1102
#define | AL_FREQUENCY 0x2001
#define | AL_GAIN 0x100A
#define | AL_ILLEGAL_COMMAND AL_INVALID_OPERATION
#define | AL_ILLEGAL_ENUM AL_INVALID_ENUM
#define | AL_INITIAL 0x1011
#define | AL_INVALID (-1)
#define | AL_INVALID_ENUM 0xA002
#define | AL_INVALID_NAME 0xA001
#define | AL_INVALID_OPERATION 0xA004
#define | AL_INVALID_VALUE 0xA003
#define | AL_INVERSE_DISTANCE 0xD001
#define | AL_INVERSE_DISTANCE_CLAMPED 0xD002
#define | AL_LINEAR_DISTANCE 0xD003
#define | AL_LINEAR_DISTANCE_CLAMPED 0xD004
#define | AL_LOOPING 0x1007
#define | AL_MAX_DISTANCE 0x1023
#define | AL_MAX_GAIN 0x100E
#define | AL_MIN_GAIN 0x100D
#define | AL_NO_ERROR AL_FALSE
#define | AL_NONE 0
#define | AL_ORIENTATION 0x100F
#define | AL_OUT_OF_MEMORY 0xA005
#define | AL_PAUSED 0x1013
#define | AL_PENDING 0x2011
#define | AL_PITCH 0x1003
#define | AL_PLAYING 0x1012
#define | AL_POSITION 0x1004
#define | AL_PROCESSED 0x2012
#define | AL_REFERENCE_DISTANCE 0x1020
#define | AL_RENDERER 0xB003
#define | AL_ROLLOFF_FACTOR 0x1021
#define | AL_SAMPLE_OFFSET 0x1025
#define | AL_SEC_OFFSET 0x1024
#define | AL_SIZE 0x2004
#define | AL_SOURCE_RELATIVE 0x202
#define | AL_SOURCE_STATE 0x1010
#define | AL_SOURCE_TYPE 0x1027
#define | AL_SPEED_OF_SOUND 0xC003
#define | AL_STATIC 0x1028
#define | AL_STOPPED 0x1014
#define | AL_STREAMING 0x1029
#define | AL_TRUE 1
#define | AL_UNDETERMINED 0x1030
#define | AL_UNUSED 0x2010
#define | AL_VELOCITY 0x1006
#define | AL_VENDOR 0xB001
#define | AL_VERSION 0xB002
#define | AL_VERSION_1_0
#define | AL_VERSION_1_1
#define | ALAPI AL_API
#define | ALAPIENTRY AL_APIENTRY
#define | OPENAL

## Typedefs

typedef char | ALboolean
typedef signed char | ALbyte
typedef char | ALchar
typedef double | ALdouble
typedef int | ALenum
typedef float | ALfloat
typedef int | ALint
typedef short | ALshort
typedef int | ALsizei
typedef unsigned char | ALubyte
typedef unsigned int | ALuint
typedef unsigned short | ALushort
typedef void | ALvoid
typedef void(AL_APIENTRY * | LPALBUFFER3F )(ALuint bid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
typedef void(AL_APIENTRY * | LPALBUFFER3I )(ALuint bid, ALenum param, ALint value1, ALint value2, ALint value3)
typedef void(AL_APIENTRY * | LPALBUFFERDATA )(ALuint bid, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq)
typedef void(AL_APIENTRY * | LPALBUFFERF )(ALuint bid, ALenum param, ALfloat value)
typedef void(AL_APIENTRY * | LPALBUFFERFV )(ALuint bid, ALenum param, const ALfloat *values)
typedef void(AL_APIENTRY * | LPALBUFFERI )(ALuint bid, ALenum param, ALint value)
typedef void(AL_APIENTRY * | LPALBUFFERIV )(ALuint bid, ALenum param, const ALint *values)
typedef void(AL_APIENTRY * | LPALDELETEBUFFERS )(ALsizei n, const ALuint *buffers)
typedef void(AL_APIENTRY * | LPALDELETESOURCES )(ALsizei n, const ALuint *sources)
typedef void(AL_APIENTRY * | LPALDISABLE )(ALenum capability)
typedef void(AL_APIENTRY * | LPALDISTANCEMODEL )(ALenum distanceModel)
typedef void(AL_APIENTRY * | LPALDOPPLERFACTOR )(ALfloat value)
typedef void(AL_APIENTRY * | LPALDOPPLERVELOCITY )(ALfloat value)
typedef void(AL_APIENTRY * | LPALENABLE )(ALenum capability)
typedef void(AL_APIENTRY * | LPALGENBUFFERS )(ALsizei n, ALuint *buffers)
typedef void(AL_APIENTRY * | LPALGENSOURCES )(ALsizei n, ALuint *sources)
typedef ALboolean(AL_APIENTRY * | LPALGETBOOLEAN )(ALenum param)
typedef void(AL_APIENTRY * | LPALGETBOOLEANV )(ALenum param, ALboolean *data)
typedef void(AL_APIENTRY * | LPALGETBUFFER3F )(ALuint bid, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)
typedef void(AL_APIENTRY * | LPALGETBUFFER3I )(ALuint bid, ALenum param, ALint *value1, ALint *value2, ALint *value3)
typedef void(AL_APIENTRY * | LPALGETBUFFERF )(ALuint bid, ALenum param, ALfloat *value)
typedef void(AL_APIENTRY * | LPALGETBUFFERFV )(ALuint bid, ALenum param, ALfloat *values)
typedef void(AL_APIENTRY * | LPALGETBUFFERI )(ALuint bid, ALenum param, ALint *value)
typedef void(AL_APIENTRY * | LPALGETBUFFERIV )(ALuint bid, ALenum param, ALint *values)
typedef ALdouble(AL_APIENTRY * | LPALGETDOUBLE )(ALenum param)
typedef void(AL_APIENTRY * | LPALGETDOUBLEV )(ALenum param, ALdouble *data)
typedef ALenum(AL_APIENTRY * | LPALGETENUMVALUE )(const ALchar *ename)
typedef ALenum(AL_APIENTRY * | LPALGETERROR )(void)
typedef ALfloat(AL_APIENTRY * | LPALGETFLOAT )(ALenum param)
typedef void(AL_APIENTRY * | LPALGETFLOATV )(ALenum param, ALfloat *data)
typedef ALint(AL_APIENTRY * | LPALGETINTEGER )(ALenum param)
typedef void(AL_APIENTRY * | LPALGETINTEGERV )(ALenum param, ALint *data)
typedef void(AL_APIENTRY * | LPALGETLISTENER3F )(ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)
typedef void(AL_APIENTRY * | LPALGETLISTENER3I )(ALenum param, ALint *value1, ALint *value2, ALint *value3)
typedef void(AL_APIENTRY * | LPALGETLISTENERF )(ALenum param, ALfloat *value)
typedef void(AL_APIENTRY * | LPALGETLISTENERFV )(ALenum param, ALfloat *values)
typedef void(AL_APIENTRY * | LPALGETLISTENERI )(ALenum param, ALint *value)
typedef void(AL_APIENTRY * | LPALGETLISTENERIV )(ALenum param, ALint *values)
typedef void *(AL_APIENTRY * | LPALGETPROCADDRESS )(const ALchar *fname)
typedef void(AL_APIENTRY * | LPALGETSOURCE3F )(ALuint sid, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)
typedef void(AL_APIENTRY * | LPALGETSOURCE3I )(ALuint sid, ALenum param, ALint *value1, ALint *value2, ALint *value3)
typedef void(AL_APIENTRY * | LPALGETSOURCEF )(ALuint sid, ALenum param, ALfloat *value)
typedef void(AL_APIENTRY * | LPALGETSOURCEFV )(ALuint sid, ALenum param, ALfloat *values)
typedef void(AL_APIENTRY * | LPALGETSOURCEI )(ALuint sid, ALenum param, ALint *value)
typedef void(AL_APIENTRY * | LPALGETSOURCEIV )(ALuint sid, ALenum param, ALint *values)
typedef const ALchar *(AL_APIENTRY * | LPALGETSTRING )(ALenum param)
typedef ALboolean(AL_APIENTRY * | LPALISBUFFER )(ALuint bid)
typedef ALboolean(AL_APIENTRY * | LPALISENABLED )(ALenum capability)
typedef ALboolean(AL_APIENTRY * | LPALISEXTENSIONPRESENT )(const ALchar *extname)
typedef ALboolean(AL_APIENTRY * | LPALISSOURCE )(ALuint sid)
typedef void(AL_APIENTRY * | LPALLISTENER3F )(ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
typedef void(AL_APIENTRY * | LPALLISTENER3I )(ALenum param, ALint value1, ALint value2, ALint value3)
typedef void(AL_APIENTRY * | LPALLISTENERF )(ALenum param, ALfloat value)
typedef void(AL_APIENTRY * | LPALLISTENERFV )(ALenum param, const ALfloat *values)
typedef void(AL_APIENTRY * | LPALLISTENERI )(ALenum param, ALint value)
typedef void(AL_APIENTRY * | LPALLISTENERIV )(ALenum param, const ALint *values)
typedef void(AL_APIENTRY * | LPALSOURCE3F )(ALuint sid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
typedef void(AL_APIENTRY * | LPALSOURCE3I )(ALuint sid, ALenum param, ALint value1, ALint value2, ALint value3)
typedef void(AL_APIENTRY * | LPALSOURCEF )(ALuint sid, ALenum param, ALfloat value)
typedef void(AL_APIENTRY * | LPALSOURCEFV )(ALuint sid, ALenum param, const ALfloat *values)
typedef void(AL_APIENTRY * | LPALSOURCEI )(ALuint sid, ALenum param, ALint value)
typedef void(AL_APIENTRY * | LPALSOURCEIV )(ALuint sid, ALenum param, const ALint *values)
typedef void(AL_APIENTRY * | LPALSOURCEPAUSE )(ALuint sid)
typedef void(AL_APIENTRY * | LPALSOURCEPAUSEV )(ALsizei ns, const ALuint *sids)
typedef void(AL_APIENTRY * | LPALSOURCEPLAY )(ALuint sid)
typedef void(AL_APIENTRY * | LPALSOURCEPLAYV )(ALsizei ns, const ALuint *sids)
typedef void(AL_APIENTRY * | LPALSOURCEQUEUEBUFFERS )(ALuint sid, ALsizei numEntries, const ALuint *bids)
typedef void(AL_APIENTRY * | LPALSOURCEREWIND )(ALuint sid)
typedef void(AL_APIENTRY * | LPALSOURCEREWINDV )(ALsizei ns, const ALuint *sids)
typedef void(AL_APIENTRY * | LPALSOURCESTOP )(ALuint sid)
typedef void(AL_APIENTRY * | LPALSOURCESTOPV )(ALsizei ns, const ALuint *sids)
typedef void(AL_APIENTRY * | LPALSOURCEUNQUEUEBUFFERS )(ALuint sid, ALsizei numEntries, ALuint *bids)
typedef void(AL_APIENTRY * | LPALSPEEDOFSOUND )(ALfloat value)

## Functions

AL_API void AL_APIENTRY | alBuffer3f (ALuint bid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
AL_API void AL_APIENTRY | alBuffer3i (ALuint bid, ALenum param, ALint value1, ALint value2, ALint value3)
AL_API void AL_APIENTRY | alBufferData (ALuint bid, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq)
AL_API void AL_APIENTRY | alBufferf (ALuint bid, ALenum param, ALfloat value)
AL_API void AL_APIENTRY | alBufferfv (ALuint bid, ALenum param, const ALfloat *values)
AL_API void AL_APIENTRY | alBufferi (ALuint bid, ALenum param, ALint value)
AL_API void AL_APIENTRY | alBufferiv (ALuint bid, ALenum param, const ALint *values)
AL_API void AL_APIENTRY | alDeleteBuffers (ALsizei n, const ALuint *buffers)
AL_API void AL_APIENTRY | alDeleteSources (ALsizei n, const ALuint *sources)
AL_API void AL_APIENTRY | alDisable (ALenum capability)
AL_API void AL_APIENTRY | alDistanceModel (ALenum distanceModel)
AL_API void AL_APIENTRY | alDopplerFactor (ALfloat value)
AL_API void AL_APIENTRY | alDopplerVelocity (ALfloat value)
AL_API void AL_APIENTRY | alEnable (ALenum capability)
AL_API void AL_APIENTRY | alGenBuffers (ALsizei n, ALuint *buffers)
AL_API void AL_APIENTRY | alGenSources (ALsizei n, ALuint *sources)
AL_API ALboolean AL_APIENTRY | alGetBoolean (ALenum param)
AL_API void AL_APIENTRY | alGetBooleanv (ALenum param, ALboolean *data)
AL_API void AL_APIENTRY | alGetBuffer3f (ALuint bid, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)
AL_API void AL_APIENTRY | alGetBuffer3i (ALuint bid, ALenum param, ALint *value1, ALint *value2, ALint *value3)
AL_API void AL_APIENTRY | alGetBufferf (ALuint bid, ALenum param, ALfloat *value)
AL_API void AL_APIENTRY | alGetBufferfv (ALuint bid, ALenum param, ALfloat *values)
AL_API void AL_APIENTRY | alGetBufferi (ALuint bid, ALenum param, ALint *value)
AL_API void AL_APIENTRY | alGetBufferiv (ALuint bid, ALenum param, ALint *values)
AL_API ALdouble AL_APIENTRY | alGetDouble (ALenum param)
AL_API void AL_APIENTRY | alGetDoublev (ALenum param, ALdouble *data)
AL_API ALenum AL_APIENTRY | alGetEnumValue (const ALchar *ename)
AL_API ALenum AL_APIENTRY | alGetError (void)
AL_API ALfloat AL_APIENTRY | alGetFloat (ALenum param)
AL_API void AL_APIENTRY | alGetFloatv (ALenum param, ALfloat *data)
AL_API ALint AL_APIENTRY | alGetInteger (ALenum param)
AL_API void AL_APIENTRY | alGetIntegerv (ALenum param, ALint *data)
AL_API void AL_APIENTRY | alGetListener3f (ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)
AL_API void AL_APIENTRY | alGetListener3i (ALenum param, ALint *value1, ALint *value2, ALint *value3)
AL_API void AL_APIENTRY | alGetListenerf (ALenum param, ALfloat *value)
AL_API void AL_APIENTRY | alGetListenerfv (ALenum param, ALfloat *values)
AL_API void AL_APIENTRY | alGetListeneri (ALenum param, ALint *value)
AL_API void AL_APIENTRY | alGetListeneriv (ALenum param, ALint *values)
AL_API void *AL_APIENTRY | alGetProcAddress (const ALchar *fname)
AL_API void AL_APIENTRY | alGetSource3f (ALuint sid, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)
AL_API void AL_APIENTRY | alGetSource3i (ALuint sid, ALenum param, ALint *value1, ALint *value2, ALint *value3)
AL_API void AL_APIENTRY | alGetSourcef (ALuint sid, ALenum param, ALfloat *value)
AL_API void AL_APIENTRY | alGetSourcefv (ALuint sid, ALenum param, ALfloat *values)
AL_API void AL_APIENTRY | alGetSourcei (ALuint sid, ALenum param, ALint *value)
AL_API void AL_APIENTRY | alGetSourceiv (ALuint sid, ALenum param, ALint *values)
AL_API const ALchar *AL_APIENTRY | alGetString (ALenum param)
AL_API ALboolean AL_APIENTRY | alIsBuffer (ALuint bid)
AL_API ALboolean AL_APIENTRY | alIsEnabled (ALenum capability)
AL_API ALboolean AL_APIENTRY | alIsExtensionPresent (const ALchar *extname)
AL_API ALboolean AL_APIENTRY | alIsSource (ALuint sid)
AL_API void AL_APIENTRY | alListener3f (ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
AL_API void AL_APIENTRY | alListener3i (ALenum param, ALint value1, ALint value2, ALint value3)
AL_API void AL_APIENTRY | alListenerf (ALenum param, ALfloat value)
AL_API void AL_APIENTRY | alListenerfv (ALenum param, const ALfloat *values)
AL_API void AL_APIENTRY | alListeneri (ALenum param, ALint value)
AL_API void AL_APIENTRY | alListeneriv (ALenum param, const ALint *values)
AL_API void AL_APIENTRY | alSource3f (ALuint sid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
AL_API void AL_APIENTRY | alSource3i (ALuint sid, ALenum param, ALint value1, ALint value2, ALint value3)
AL_API void AL_APIENTRY | alSourcef (ALuint sid, ALenum param, ALfloat value)
AL_API void AL_APIENTRY | alSourcefv (ALuint sid, ALenum param, const ALfloat *values)
AL_API void AL_APIENTRY | alSourcei (ALuint sid, ALenum param, ALint value)
AL_API void AL_APIENTRY | alSourceiv (ALuint sid, ALenum param, const ALint *values)
AL_API void AL_APIENTRY | alSourcePause (ALuint sid)
AL_API void AL_APIENTRY | alSourcePausev (ALsizei ns, const ALuint *sids)
AL_API void AL_APIENTRY | alSourcePlay (ALuint sid)
AL_API void AL_APIENTRY | alSourcePlayv (ALsizei ns, const ALuint *sids)
AL_API void AL_APIENTRY | alSourceQueueBuffers (ALuint sid, ALsizei numEntries, const ALuint *bids)
AL_API void AL_APIENTRY | alSourceRewind (ALuint sid)
AL_API void AL_APIENTRY | alSourceRewindv (ALsizei ns, const ALuint *sids)
AL_API void AL_APIENTRY | alSourceStop (ALuint sid)
AL_API void AL_APIENTRY | alSourceStopv (ALsizei ns, const ALuint *sids)
AL_API void AL_APIENTRY | alSourceUnqueueBuffers (ALuint sid, ALsizei numEntries, ALuint *bids)
AL_API void AL_APIENTRY | alSpeedOfSound (ALfloat value)

## Macro Definition Documentation

#define AL_API extern

Definition at line 20 of file al.h.

#define AL_APIENTRY

Definition at line 27 of file al.h.

#define AL_BITS 0x2002

Definition at line 281 of file al.h.

#define AL_BUFFER 0x1009

Indicate the buffer to provide sound samples. Type: ALuint. Range: any valid Buffer id.

Definition at line 158 of file al.h.

#define AL_BUFFERS_PROCESSED 0x1016

Definition at line 211 of file al.h.

#define AL_BUFFERS_QUEUED 0x1015

Buffer Queue params

Definition at line 210 of file al.h.

#define AL_BYTE_OFFSET 0x1026

Definition at line 218 of file al.h.

#define AL_CHANNELS 0x2003

Definition at line 282 of file al.h.

#define AL_CONE_INNER_ANGLE 0x1001

Directional source, inner cone angle, in degrees. Range: [0-360] Default: 360

Definition at line 111 of file al.h.

#define AL_CONE_OUTER_ANGLE 0x1002

Directional source, outer cone angle, in degrees. Range: [0-360] Default: 360

Definition at line 118 of file al.h.

#define AL_CONE_OUTER_GAIN 0x1022

Directional source, outer cone gain.

Default: 0.0 Range: [0.0 - 1.0] Logarithmic

Definition at line 262 of file al.h.

#define AL_DIRECTION 0x1005

Specify the current direction.

Definition at line 140 of file al.h.

#define AL_DISTANCE_MODEL 0xD000

Distance models

used in conjunction with DistanceModel

implicit: NONE, which disances distance attenuation.

Definition at line 355 of file al.h.

#define AL_DOPPLER_FACTOR 0xC000

Global tweakage. Doppler scale. Default 1.0

Definition at line 336 of file al.h.

#define AL_DOPPLER_VELOCITY 0xC001

Tweaks speed of propagation.

Definition at line 341 of file al.h.

#define AL_EXPONENT_DISTANCE 0xD005

Definition at line 360 of file al.h.

#define AL_EXPONENT_DISTANCE_CLAMPED 0xD006

Definition at line 361 of file al.h.

#define AL_EXTENSIONS 0xB004

Definition at line 329 of file al.h.

#define AL_FALSE 0

Definition at line 96 of file al.h.

#define AL_FORMAT_MONO16 0x1101

Definition at line 233 of file al.h.

#define AL_FORMAT_MONO8 0x1100

Sound samples: format specifier.

Definition at line 232 of file al.h.

#define AL_FORMAT_STEREO16 0x1103

Definition at line 235 of file al.h.

#define AL_FORMAT_STEREO8 0x1102

Definition at line 234 of file al.h.

#define AL_FREQUENCY 0x2001

Sound samples: frequency, in units of Hertz [Hz]. This is the number of samples per second. Half of the sample frequency marks the maximum significant frequency component.

Definition at line 280 of file al.h.

#define AL_GAIN 0x100A

Indicate the gain (volume amplification) applied. Type: ALfloat. Range: ]0.0- ] A value of 1.0 means un-attenuated/unchanged. Each division by 2 equals an attenuation of -6dB. Each multiplicaton with 2 equals an amplification of +6dB. A value of 0.0 is meaningless with respect to a logarithmic scale; it is interpreted as zero volume - the channel is effectively disabled.

Definition at line 171 of file al.h.

#define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION

Definition at line 44 of file al.h.

#define AL_ILLEGAL_ENUM AL_INVALID_ENUM

Definition at line 43 of file al.h.

#define AL_INITIAL 0x1011

Definition at line 202 of file al.h.

#define AL_INVALID (-1)

Definition at line 42 of file al.h.

#define AL_INVALID_ENUM 0xA002

Invalid parameter passed to AL call.

Definition at line 306 of file al.h.

#define AL_INVALID_NAME 0xA001

Invalid Name paramater passed to AL call.

Definition at line 301 of file al.h.

#define AL_INVALID_OPERATION 0xA004

Illegal call.

Definition at line 316 of file al.h.

#define AL_INVALID_VALUE 0xA003

Invalid enum parameter value.

Definition at line 311 of file al.h.

#define AL_INVERSE_DISTANCE 0xD001

Definition at line 356 of file al.h.

#define AL_INVERSE_DISTANCE_CLAMPED 0xD002

Definition at line 357 of file al.h.

#define AL_LINEAR_DISTANCE 0xD003

Definition at line 358 of file al.h.

#define AL_LINEAR_DISTANCE_CLAMPED 0xD004

Definition at line 359 of file al.h.

#define AL_LOOPING 0x1007

Indicate whether source is looping. Type: ALboolean? Range: [AL_TRUE, AL_FALSE] Default: FALSE.

Definition at line 151 of file al.h.

#define AL_MAX_DISTANCE 0x1023

Indicate distance above which sources are not attenuated using the inverse clamped distance model.

Default: +inf Type: ALfloat Range: 0.0 - +inf

Definition at line 272 of file al.h.

#define AL_MAX_GAIN 0x100E

Indicate maximum source attenuation Type: ALfloat Range: [0.0 - 1.0]

Logarthmic

Definition at line 189 of file al.h.

#define AL_MIN_GAIN 0x100D

Definition at line 180 of file al.h.

#define AL_NO_ERROR AL_FALSE

Errors: No Error.

Definition at line 296 of file al.h.

#define AL_NONE 0

Definition at line 93 of file al.h.

#define AL_ORIENTATION 0x100F

Indicate listener orientation.

at/up

Definition at line 196 of file al.h.

#define AL_OUT_OF_MEMORY 0xA005

No mojo.

Definition at line 322 of file al.h.

#define AL_PAUSED 0x1013

Definition at line 204 of file al.h.

#define AL_PENDING 0x2011

Definition at line 291 of file al.h.

#define AL_PITCH 0x1003

Specify the pitch to be applied at source. Range: [0.5-2.0] Default: 1.0

Definition at line 125 of file al.h.

#define AL_PLAYING 0x1012

Definition at line 203 of file al.h.

#define AL_POSITION 0x1004

Specify the current location in three dimensional space. OpenAL, like OpenGL, uses a right handed coordinate system, where in a frontal default view X (thumb) points right, Y points up (index finger), and Z points towards the viewer/camera (middle finger). To switch from a left handed coordinate system, flip the sign on the Z coordinate. Listener position is always in the world coordinate system.

Definition at line 137 of file al.h.

#define AL_PROCESSED 0x2012

Definition at line 292 of file al.h.

#define AL_REFERENCE_DISTANCE 0x1020

source specific reference distance Type: ALfloat Range: 0.0 - +inf

At 0.0, no distance attenuation occurs. Default is 1.0.

Definition at line 245 of file al.h.

#define AL_RENDERER 0xB003

Definition at line 328 of file al.h.

#define AL_ROLLOFF_FACTOR 0x1021

source specific rolloff factor Type: ALfloat Range: 0.0 - +inf

Definition at line 253 of file al.h.

#define AL_SAMPLE_OFFSET 0x1025

Definition at line 217 of file al.h.

#define AL_SEC_OFFSET 0x1024

Source buffer position information

Definition at line 216 of file al.h.

#define AL_SIZE 0x2004

Definition at line 283 of file al.h.

#define AL_SOURCE_RELATIVE 0x202

Indicate Source has relative coordinates.

Definition at line 102 of file al.h.

#define AL_SOURCE_STATE 0x1010

Source state information.

Definition at line 201 of file al.h.

#define AL_SOURCE_TYPE 0x1027

Definition at line 226 of file al.h.

#define AL_SPEED_OF_SOUND 0xC003

Speed of Sound in units per second

Definition at line 346 of file al.h.

#define AL_STATIC 0x1028

Definition at line 227 of file al.h.

#define AL_STOPPED 0x1014

Definition at line 205 of file al.h.

#define AL_STREAMING 0x1029

Definition at line 228 of file al.h.

#define AL_TRUE 1

Boolean True.

Definition at line 99 of file al.h.

#define AL_UNDETERMINED 0x1030

Definition at line 229 of file al.h.

#define AL_UNUSED 0x2010

Buffer state.

Not supported for public use (yet).

Definition at line 290 of file al.h.

#define AL_VELOCITY 0x1006

Specify the current velocity in three dimensional space.

Definition at line 143 of file al.h.

#define AL_VENDOR 0xB001

Context strings: Vendor Name.

Definition at line 326 of file al.h.

#define AL_VERSION 0xB002

Definition at line 327 of file al.h.

#define AL_VERSION_1_0

Definition at line 46 of file al.h.

#define AL_VERSION_1_1

Definition at line 47 of file al.h.

#define ALAPI AL_API

Definition at line 40 of file al.h.

#define ALAPIENTRY AL_APIENTRY

Definition at line 41 of file al.h.

#define OPENAL

Definition at line 39 of file al.h.

## Typedef Documentation

typedef char ALboolean

8-bit boolean

Definition at line 51 of file al.h.

typedef signed char ALbyte

signed 8-bit 2's complement integer

Definition at line 57 of file al.h.

typedef char ALchar

character

Definition at line 54 of file al.h.

typedef double ALdouble

64-bit IEEE754 floating-point

Definition at line 84 of file al.h.

typedef int ALenum

enumerated 32-bit value

Definition at line 78 of file al.h.

typedef float ALfloat

32-bit IEEE754 floating-point

Definition at line 81 of file al.h.

typedef int ALint

signed 32-bit 2's complement integer

Definition at line 69 of file al.h.

typedef short ALshort

signed 16-bit 2's complement integer

Definition at line 63 of file al.h.

typedef int ALsizei

non-negative 32-bit binary integer size

Definition at line 75 of file al.h.

typedef unsigned char ALubyte

unsigned 8-bit integer

Definition at line 60 of file al.h.

typedef unsigned int ALuint

unsigned 32-bit integer

Definition at line 72 of file al.h.

typedef unsigned short ALushort

unsigned 16-bit integer

Definition at line 66 of file al.h.

typedef void ALvoid

void type (for opaque pointers only)

Definition at line 87 of file al.h.

typedef void(AL_APIENTRY * LPALBUFFER3F)(ALuint bid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)

Definition at line 700 of file al.h.

typedef void(AL_APIENTRY * LPALBUFFER3I)(ALuint bid, ALenum param, ALint value1, ALint value2, ALint value3)

Definition at line 703 of file al.h.

typedef void(AL_APIENTRY * LPALBUFFERDATA)(ALuint bid, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq)

Definition at line 698 of file al.h.

typedef void(AL_APIENTRY * LPALBUFFERF)(ALuint bid, ALenum param, ALfloat value)

Definition at line 699 of file al.h.

typedef void(AL_APIENTRY * LPALBUFFERFV)(ALuint bid, ALenum param, const ALfloat *values)

Definition at line 701 of file al.h.

typedef void(AL_APIENTRY * LPALBUFFERI)(ALuint bid, ALenum param, ALint value)

Definition at line 702 of file al.h.

typedef void(AL_APIENTRY * LPALBUFFERIV)(ALuint bid, ALenum param, const ALint *values)

Definition at line 704 of file al.h.

typedef void(AL_APIENTRY * LPALDELETEBUFFERS)(ALsizei n, const ALuint *buffers)

Definition at line 696 of file al.h.

typedef void(AL_APIENTRY * LPALDELETESOURCES)(ALsizei n, const ALuint *sources)

Definition at line 671 of file al.h.

typedef void(AL_APIENTRY * LPALDISABLE)(ALenum capability)

Definition at line 643 of file al.h.

typedef void(AL_APIENTRY * LPALDISTANCEMODEL)(ALenum distanceModel)

Definition at line 714 of file al.h.

typedef void(AL_APIENTRY * LPALDOPPLERFACTOR)(ALfloat value)

Definition at line 711 of file al.h.

typedef void(AL_APIENTRY * LPALDOPPLERVELOCITY)(ALfloat value)

Definition at line 712 of file al.h.

typedef void(AL_APIENTRY * LPALENABLE)(ALenum capability)

Definition at line 642 of file al.h.

typedef void(AL_APIENTRY * LPALGENBUFFERS)(ALsizei n, ALuint *buffers)

Definition at line 695 of file al.h.

typedef void(AL_APIENTRY * LPALGENSOURCES)(ALsizei n, ALuint *sources)

Definition at line 670 of file al.h.

typedef ALboolean(AL_APIENTRY * LPALGETBOOLEAN)(ALenum param)

Definition at line 650 of file al.h.

typedef void(AL_APIENTRY * LPALGETBOOLEANV)(ALenum param, ALboolean *data)

Definition at line 646 of file al.h.

typedef void(AL_APIENTRY * LPALGETBUFFER3F)(ALuint bid, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)

Definition at line 706 of file al.h.

typedef void(AL_APIENTRY * LPALGETBUFFER3I)(ALuint bid, ALenum param, ALint *value1, ALint *value2, ALint *value3)

Definition at line 709 of file al.h.

typedef void(AL_APIENTRY * LPALGETBUFFERF)(ALuint bid, ALenum param, ALfloat *value)

Definition at line 705 of file al.h.

typedef void(AL_APIENTRY * LPALGETBUFFERFV)(ALuint bid, ALenum param, ALfloat *values)

Definition at line 707 of file al.h.

typedef void(AL_APIENTRY * LPALGETBUFFERI)(ALuint bid, ALenum param, ALint *value)

Definition at line 708 of file al.h.

typedef void(AL_APIENTRY * LPALGETBUFFERIV)(ALuint bid, ALenum param, ALint *values)

Definition at line 710 of file al.h.

typedef ALdouble(AL_APIENTRY * LPALGETDOUBLE)(ALenum param)

Definition at line 653 of file al.h.

typedef void(AL_APIENTRY * LPALGETDOUBLEV)(ALenum param, ALdouble *data)

Definition at line 649 of file al.h.

typedef ALenum(AL_APIENTRY * LPALGETENUMVALUE)(const ALchar *ename)

Definition at line 657 of file al.h.

typedef ALenum(AL_APIENTRY * LPALGETERROR)(void)

Definition at line 654 of file al.h.

typedef ALfloat(AL_APIENTRY * LPALGETFLOAT)(ALenum param)

Definition at line 652 of file al.h.

typedef void(AL_APIENTRY * LPALGETFLOATV)(ALenum param, ALfloat *data)

Definition at line 648 of file al.h.

typedef ALint(AL_APIENTRY * LPALGETINTEGER)(ALenum param)

Definition at line 651 of file al.h.

typedef void(AL_APIENTRY * LPALGETINTEGERV)(ALenum param, ALint *data)

Definition at line 647 of file al.h.

typedef void(AL_APIENTRY * LPALGETLISTENER3F)(ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)

Definition at line 665 of file al.h.

typedef void(AL_APIENTRY * LPALGETLISTENER3I)(ALenum param, ALint *value1, ALint *value2, ALint *value3)

Definition at line 668 of file al.h.

typedef void(AL_APIENTRY * LPALGETLISTENERF)(ALenum param, ALfloat *value)

Definition at line 664 of file al.h.

typedef void(AL_APIENTRY * LPALGETLISTENERFV)(ALenum param, ALfloat *values)

Definition at line 666 of file al.h.

typedef void(AL_APIENTRY * LPALGETLISTENERI)(ALenum param, ALint *value)

Definition at line 667 of file al.h.

typedef void(AL_APIENTRY * LPALGETLISTENERIV)(ALenum param, ALint *values)

Definition at line 669 of file al.h.

typedef void*(AL_APIENTRY * LPALGETPROCADDRESS)(const ALchar *fname)

Definition at line 656 of file al.h.

typedef void(AL_APIENTRY * LPALGETSOURCE3F)(ALuint sid, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)

Definition at line 680 of file al.h.

typedef void(AL_APIENTRY * LPALGETSOURCE3I)(ALuint sid, ALenum param, ALint *value1, ALint *value2, ALint *value3)

Definition at line 683 of file al.h.

typedef void(AL_APIENTRY * LPALGETSOURCEF)(ALuint sid, ALenum param, ALfloat *value)

Definition at line 679 of file al.h.

typedef void(AL_APIENTRY * LPALGETSOURCEFV)(ALuint sid, ALenum param, ALfloat *values)

Definition at line 681 of file al.h.

typedef void(AL_APIENTRY * LPALGETSOURCEI)(ALuint sid, ALenum param, ALint *value)

Definition at line 682 of file al.h.

typedef void(AL_APIENTRY * LPALGETSOURCEIV)(ALuint sid, ALenum param, ALint *values)

Definition at line 684 of file al.h.

typedef const ALchar*(AL_APIENTRY * LPALGETSTRING)(ALenum param)

Definition at line 645 of file al.h.

typedef ALboolean(AL_APIENTRY * LPALISBUFFER)(ALuint bid)

Definition at line 697 of file al.h.

typedef ALboolean(AL_APIENTRY * LPALISENABLED)(ALenum capability)

Definition at line 644 of file al.h.

typedef ALboolean(AL_APIENTRY * LPALISEXTENSIONPRESENT)(const ALchar *extname)

Definition at line 655 of file al.h.

typedef ALboolean(AL_APIENTRY * LPALISSOURCE)(ALuint sid)

Definition at line 672 of file al.h.

typedef void(AL_APIENTRY * LPALLISTENER3F)(ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)

Definition at line 659 of file al.h.

typedef void(AL_APIENTRY * LPALLISTENER3I)(ALenum param, ALint value1, ALint value2, ALint value3)

Definition at line 662 of file al.h.

typedef void(AL_APIENTRY * LPALLISTENERF)(ALenum param, ALfloat value)

Definition at line 658 of file al.h.

typedef void(AL_APIENTRY * LPALLISTENERFV)(ALenum param, const ALfloat *values)

Definition at line 660 of file al.h.

typedef void(AL_APIENTRY * LPALLISTENERI)(ALenum param, ALint value)

Definition at line 661 of file al.h.

typedef void(AL_APIENTRY * LPALLISTENERIV)(ALenum param, const ALint *values)

Definition at line 663 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCE3F)(ALuint sid, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)

Definition at line 674 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCE3I)(ALuint sid, ALenum param, ALint value1, ALint value2, ALint value3)

Definition at line 677 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEF)(ALuint sid, ALenum param, ALfloat value)

Definition at line 673 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEFV)(ALuint sid, ALenum param, const ALfloat *values)

Definition at line 675 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEI)(ALuint sid, ALenum param, ALint value)

Definition at line 676 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEIV)(ALuint sid, ALenum param, const ALint *values)

Definition at line 678 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEPAUSE)(ALuint sid)

Definition at line 692 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEPAUSEV)(ALsizei ns, const ALuint *sids)

Definition at line 688 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEPLAY)(ALuint sid)

Definition at line 689 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEPLAYV)(ALsizei ns, const ALuint *sids)

Definition at line 685 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEQUEUEBUFFERS)(ALuint sid, ALsizei numEntries, const ALuint *bids)

Definition at line 693 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEREWIND)(ALuint sid)

Definition at line 691 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEREWINDV)(ALsizei ns, const ALuint *sids)

Definition at line 687 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCESTOP)(ALuint sid)

Definition at line 690 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCESTOPV)(ALsizei ns, const ALuint *sids)

Definition at line 686 of file al.h.

typedef void(AL_APIENTRY * LPALSOURCEUNQUEUEBUFFERS)(ALuint sid, ALsizei numEntries, ALuint *bids)

Definition at line 694 of file al.h.

typedef void(AL_APIENTRY * LPALSPEEDOFSOUND)(ALfloat value)

Definition at line 713 of file al.h.

## Function Documentation

AL_API void AL_APIENTRY alBuffer3f | ( | ALuint | bid,
|  | ALenum | param,
|  | ALfloat | value1,
|  | ALfloat | value2,
|  | ALfloat | value3
| ) |  |

Definition at line 639 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.

AL_API void AL_APIENTRY alBuffer3i | ( | ALuint | bid,
|  | ALenum | param,
|  | ALint | value1,
|  | ALint | value2,
|  | ALint | value3
| ) |  |

Definition at line 721 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.

AL_API void AL_APIENTRY alBufferData | ( | ALuint | bid,
|  | ALenum | format,
|  | const ALvoid * | data,
|  | ALsizei | size,
|  | ALsizei | freq
| ) |  |

Specifies the data to be copied into a buffer

Definition at line 289 of file alBuffer.c.

References al_endtry, AL_FALSE, AL_FORMAT_51CHN16, AL_FORMAT_51CHN32, AL_FORMAT_61CHN16, AL_FORMAT_61CHN32, AL_FORMAT_71CHN16, AL_FORMAT_71CHN32, AL_FORMAT_MONO16, AL_FORMAT_MONO_FLOAT32, AL_FORMAT_QUAD16, AL_FORMAT_QUAD32, AL_FORMAT_REAR16, AL_FORMAT_REAR32, AL_FORMAT_STEREO16, AL_FORMAT_STEREO_FLOAT32, AL_INVALID_ENUM, AL_INVALID_NAME, AL_NO_ERROR, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), ChannelsFromUserFmt(), CHECK_VALUE, DecomposeUserFormat(), ALCcontext_struct::Device, FrameSizeFromUserFmt(), GetContextRef(), LoadData(), LookupBuffer, NULL, UserFmtAlaw, UserFmtByte, UserFmtByte3, UserFmtDouble, UserFmtFloat, UserFmtIMA4, UserFmtInt, UserFmtMono, UserFmtMulaw, UserFmtQuad, UserFmtRear, UserFmtShort, UserFmtStereo, UserFmtUByte, UserFmtUByte3, UserFmtUInt, UserFmtUShort, UserFmtX51, UserFmtX61, and UserFmtX71.

AL_API void AL_APIENTRY alBufferf | ( | ALuint | bid,
|  | ALenum | param,
|  | ALfloat | value
| ) |  |

Set Buffer parameters,

Definition at line 612 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.

AL_API void AL_APIENTRY alBufferfv | ( | ALuint | bid,
|  | ALenum | param,
|  | const ALfloat * | values
| ) |  |

Definition at line 668 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.

AL_API void AL_APIENTRY alBufferi | ( | ALuint | bid,
|  | ALenum | param,
|  | ALint | value
| ) |  |

Definition at line 694 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.

AL_API void AL_APIENTRY alBufferiv | ( | ALuint | bid,
|  | ALenum | param,
|  | const ALint * | values
| ) |  |

Definition at line 750 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_OPERATION, AL_INVALID_VALUE, AL_LOOP_POINTS_SOFT, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), ALbuffer::lock, LookupBuffer, ALbuffer::LoopEnd, ALbuffer::LoopStart, NULL, ALbuffer::ref, ALbuffer::SampleLen, WriteLock(), and WriteUnlock().

AL_API void AL_APIENTRY alDeleteBuffers | ( | ALsizei | n,
|  | const ALuint * | buffers
| ) |  |

Delete Buffer objects

Definition at line 229 of file alBuffer.c.

References al_endtry, AL_INVALID_NAME, AL_INVALID_OPERATION, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALbuffer::data, ALCcontext_struct::Device, free, FreeThunkEntry(), GetContextRef(), i, ALbuffer::id, LookupBuffer, memset, NULL, ALbuffer::ref, and RemoveBuffer.

AL_API void AL_APIENTRY alDeleteSources | ( | ALsizei | n,
|  | const ALuint * | sources
| ) |  |

Delete Source objects.

Definition at line 1262 of file alSource.c.

References ALCcontext_struct::ActiveSourceCount, ALCcontext_struct::ActiveSources, al_endtry, al_free(), AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALbufferlistitem::buffer, CHECK_VALUE, free, FreeThunkEntry(), GetContextRef(), i, ALsource::id, j, LockContext(), LookupSource, MAX_SENDS, memset, ALbufferlistitem::next, NULL, ALsource::queue, ALeffectslot::ref, ALbuffer::ref, RemoveSource, ALsource::Send, ALsource::Slot, and UnlockContext().

AL_API void AL_APIENTRY alDisable | ( | ALenum | capability | ) |

Definition at line 69 of file alState.c.

References al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_SOURCE_DISTANCE_MODEL, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), GetContextRef(), ALCcontext_struct::SourceDistanceModel, and ALCcontext_struct::UpdateSources.

AL_API void AL_APIENTRY alDistanceModel | ( | ALenum | distanceModel | ) |

Definition at line 561 of file alState.c.

References al_endtry, AL_EXPONENT_DISTANCE, AL_EXPONENT_DISTANCE_CLAMPED, AL_INVERSE_DISTANCE, AL_INVERSE_DISTANCE_CLAMPED, AL_LINEAR_DISTANCE, AL_LINEAR_DISTANCE_CLAMPED, AL_NONE, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DistanceModel, GetContextRef(), ALCcontext_struct::SourceDistanceModel, and ALCcontext_struct::UpdateSources.

AL_API void AL_APIENTRY alDopplerFactor | ( | ALfloat | value | ) |

Definition at line 504 of file alState.c.

References al_endtry, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DopplerFactor, GetContextRef(), and ALCcontext_struct::UpdateSources.

AL_API void AL_APIENTRY alDopplerVelocity | ( | ALfloat | value | ) |

Definition at line 523 of file alState.c.

References al_endtry, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::UpdateSources.

AL_API void AL_APIENTRY alEnable | ( | ALenum | capability | ) |

Renderer State management.

Definition at line 44 of file alState.c.

References al_endtry, AL_INVALID_ENUM, AL_SOURCE_DISTANCE_MODEL, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), GetContextRef(), ALCcontext_struct::SourceDistanceModel, and ALCcontext_struct::UpdateSources.

AL_API void AL_APIENTRY alGenBuffers | ( | ALsizei | n,
|  | ALuint * | buffers
| ) |  |

BUFFER Buffer objects are storage space for sample data. Buffers are referred to by Sources. One Buffer can be used by multiple Sources.

Properties include: -

Frequency (Query only) AL_FREQUENCY ALint Size (Query only) AL_SIZE ALint Bits (Query only) AL_BITS ALint Channels (Query only) AL_CHANNELS ALint

Create Buffer objects

Definition at line 183 of file alBuffer.c.

References al_catchany, al_endtry, AL_NO_ERROR, AL_OUT_OF_MEMORY, al_throwerr, al_try, ALCcontext_DecRef(), alDeleteBuffers(), ALCdevice_struct::BufferMap, calloc, CHECK_VALUE, ALCcontext_struct::Device, free, FreeThunkEntry(), GetContextRef(), ALbuffer::id, InsertUIntMapEntry(), ALbuffer::lock, memset, NewThunkEntry(), and RWLockInit().

AL_API void AL_APIENTRY alGenSources | ( | ALsizei | n,
|  | ALuint * | sources
| ) |  |

SOURCE Sources represent individual sound objects in 3D-space. Sources take the PCM data provided in the specified Buffer, apply Source-specific modifications, and then submit them to be mixed according to spatial arrangement etc.

Properties include: -

Gain AL_GAIN ALfloat Min Gain AL_MIN_GAIN ALfloat Max Gain AL_MAX_GAIN ALfloat Position AL_POSITION ALfloat[3] Velocity AL_VELOCITY ALfloat[3] Direction AL_DIRECTION ALfloat[3] Head Relative Mode AL_SOURCE_RELATIVE ALint (AL_TRUE or AL_FALSE) Reference Distance AL_REFERENCE_DISTANCE ALfloat Max Distance AL_MAX_DISTANCE ALfloat RollOff Factor AL_ROLLOFF_FACTOR ALfloat Inner Angle AL_CONE_INNER_ANGLE ALint or ALfloat Outer Angle AL_CONE_OUTER_ANGLE ALint or ALfloat Cone Outer Gain AL_CONE_OUTER_GAIN ALint or ALfloat Pitch AL_PITCH ALfloat Looping AL_LOOPING ALint (AL_TRUE or AL_FALSE) MS Offset AL_MSEC_OFFSET ALint or ALfloat Byte Offset AL_BYTE_OFFSET ALint or ALfloat Sample Offset AL_SAMPLE_OFFSET ALint or ALfloat Attached Buffer AL_BUFFER ALint State (Query only) AL_SOURCE_STATE ALint Buffers Queued (Query only) AL_BUFFERS_QUEUED ALint Buffers Processed (Query only) AL_BUFFERS_PROCESSED ALint

Create Source objects.

Definition at line 1216 of file alSource.c.

References al_calloc(), al_catchany, al_endtry, al_free(), AL_NO_ERROR, AL_OUT_OF_MEMORY, al_throwerr, al_try, ALCcontext_DecRef(), alDeleteSources(), CHECK_VALUE, FreeThunkEntry(), GetContextRef(), ALsource::id, InitSourceParams(), InsertUIntMapEntry(), memset, NewThunkEntry(), and ALCcontext_struct::SourceMap.

AL_API ALboolean AL_APIENTRY alGetBoolean | ( | ALenum | param | ) |

Definition at line 121 of file alState.c.

References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_INVERSE_DISTANCE_CLAMPED, AL_SPEED_OF_SOUND, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), ALCcontext_struct::DeferUpdates, ALCcontext_struct::DistanceModel, ALCcontext_struct::DopplerFactor, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::SpeedOfSound.

AL_API void AL_APIENTRY alGetBooleanv | ( | ALenum | param,
|  | ALboolean * | data
| ) |  |

Definition at line 297 of file alState.c.

References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), alGetBoolean(), CHECK_VALUE, and GetContextRef().

AL_API void AL_APIENTRY alGetBuffer3f | ( | ALuint | bid,
|  | ALenum | param,
|  | ALfloat * | value1,
|  | ALfloat * | value2,
|  | ALfloat * | value3
| ) |  |

Definition at line 832 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.

AL_API void AL_APIENTRY alGetBuffer3i | ( | ALuint | bid,
|  | ALenum | param,
|  | ALint * | value1,
|  | ALint * | value2,
|  | ALint * | value3
| ) |  |

Definition at line 949 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.

AL_API void AL_APIENTRY alGetBufferf | ( | ALuint | bid,
|  | ALenum | param,
|  | ALfloat * | value
| ) |  |

Get Buffer parameters.

Definition at line 796 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, AL_SEC_LENGTH_SOFT, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, ALbuffer::Frequency, GetContextRef(), ALbuffer::lock, LookupBuffer, NULL, ReadLock(), ReadUnlock(), and ALbuffer::SampleLen.

AL_API void AL_APIENTRY alGetBufferfv | ( | ALuint | bid,
|  | ALenum | param,
|  | ALfloat * | values
| ) |  |

Definition at line 858 of file alBuffer.c.

References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, AL_SEC_LENGTH_SOFT, al_throwerr, al_try, ALCcontext_DecRef(), alGetBufferf(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.

AL_API void AL_APIENTRY alGetBufferi | ( | ALuint | bid,
|  | ALenum | param,
|  | ALint * | value
| ) |  |

Definition at line 891 of file alBuffer.c.

References AL_BITS, AL_BYTE_LENGTH_SOFT, AL_CHANNELS, al_endtry, AL_FREQUENCY, AL_INTERNAL_FORMAT_SOFT, AL_INVALID_ENUM, AL_INVALID_NAME, AL_SAMPLE_LENGTH_SOFT, AL_SIZE, al_throwerr, al_try, ALCcontext_DecRef(), BytesFromFmt(), ChannelsFromFmt(), CHECK_VALUE, ALCcontext_struct::Device, ALbuffer::FmtChannels, ALbuffer::FmtType, ALbuffer::Format, FrameSizeFromFmt(), ALbuffer::Frequency, GetContextRef(), ALbuffer::lock, LookupBuffer, NULL, ALbuffer::OriginalSize, ReadLock(), ReadUnlock(), and ALbuffer::SampleLen.

AL_API void AL_APIENTRY alGetBufferiv | ( | ALuint | bid,
|  | ALenum | param,
|  | ALint * | values
| ) |  |

Definition at line 975 of file alBuffer.c.

References AL_BITS, AL_BYTE_LENGTH_SOFT, AL_CHANNELS, al_endtry, AL_FREQUENCY, AL_INTERNAL_FORMAT_SOFT, AL_INVALID_ENUM, AL_INVALID_NAME, AL_LOOP_POINTS_SOFT, AL_SAMPLE_LENGTH_SOFT, AL_SIZE, al_throwerr, al_try, ALCcontext_DecRef(), alGetBufferi(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), ALbuffer::lock, LookupBuffer, ALbuffer::LoopEnd, ALbuffer::LoopStart, NULL, ReadLock(), and ReadUnlock().

AL_API ALdouble AL_APIENTRY alGetDouble | ( | ALenum | param | ) |

Definition at line 168 of file alState.c.

References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::DeferUpdates, ALCcontext_struct::DistanceModel, ALCcontext_struct::DopplerFactor, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::SpeedOfSound.

AL_API void AL_APIENTRY alGetDoublev | ( | ALenum | param,
|  | ALdouble * | data
| ) |  |

Definition at line 332 of file alState.c.

References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), alGetDouble(), CHECK_VALUE, and GetContextRef().

AL_API ALenum AL_APIENTRY alGetEnumValue | ( | const ALchar * | ename | ) |

Definition at line 95 of file alExtension.c.

References alcGetEnumValue().

AL_API ALenum AL_APIENTRY alGetError | ( | void |  | ) |

Error retrieval.

Obtain the first error generated in the AL context since the last check.

Definition at line 46 of file alError.c.

References AL_INVALID_OPERATION, AL_NO_ERROR, ALCcontext_DecRef(), GetContextRef(), ALCcontext_struct::LastError, and TrapALError.

AL_API ALfloat AL_APIENTRY alGetFloat | ( | ALenum | param | ) |

Definition at line 211 of file alState.c.

References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::DeferUpdates, ALCcontext_struct::DistanceModel, ALCcontext_struct::DopplerFactor, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::SpeedOfSound.

AL_API void AL_APIENTRY alGetFloatv | ( | ALenum | param,
|  | ALfloat * | data
| ) |  |

Definition at line 367 of file alState.c.

References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), alGetFloat(), CHECK_VALUE, and GetContextRef().

AL_API ALint AL_APIENTRY alGetInteger | ( | ALenum | param | ) |

Definition at line 254 of file alState.c.

References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::DeferUpdates, ALCcontext_struct::DistanceModel, ALCcontext_struct::DopplerFactor, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::SpeedOfSound.

AL_API void AL_APIENTRY alGetIntegerv | ( | ALenum | param,
|  | ALint * | data
| ) |  |

Definition at line 402 of file alState.c.

References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), alGetInteger(), CHECK_VALUE, and GetContextRef().

AL_API void AL_APIENTRY alGetListener3f | ( | ALenum | param,
|  | ALfloat * | value1,
|  | ALfloat * | value2,
|  | ALfloat * | value3
| ) |  |

Definition at line 288 of file alListener.c.

References al_endtry, AL_INVALID_ENUM, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), ALCcontext_struct::Listener, LockContext(), ALlistener::Position, UnlockContext(), and ALlistener::Velocity.

AL_API void AL_APIENTRY alGetListener3i | ( | ALenum | param,
|  | ALint * | value1,
|  | ALint * | value2,
|  | ALint * | value3
| ) |  |

Definition at line 395 of file alListener.c.

References al_endtry, AL_INVALID_ENUM, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), ALCcontext_struct::Listener, LockContext(), ALlistener::Position, UnlockContext(), and ALlistener::Velocity.

AL_API void AL_APIENTRY alGetListenerf | ( | ALenum | param,
|  | ALfloat * | value
| ) |  |

Get Listener parameters

Definition at line 258 of file alListener.c.

References al_endtry, AL_GAIN, AL_INVALID_ENUM, AL_METERS_PER_UNIT, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALlistener::Gain, GetContextRef(), ALCcontext_struct::Listener, and ALlistener::MetersPerUnit.

AL_API void AL_APIENTRY alGetListenerfv | ( | ALenum | param,
|  | ALfloat * | values
| ) |  |

Definition at line 326 of file alListener.c.

References al_endtry, AL_GAIN, AL_INVALID_ENUM, AL_METERS_PER_UNIT, AL_ORIENTATION, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), alGetListener3f(), alGetListenerf(), CHECK_VALUE, ALlistener::Forward, GetContextRef(), ALCcontext_struct::Listener, LockContext(), UnlockContext(), and ALlistener::Up.

AL_API void AL_APIENTRY alGetListeneri | ( | ALenum | param,
|  | ALint * | value
| ) |  |

Definition at line 373 of file alListener.c.

References al_endtry, AL_INVALID_ENUM, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, and GetContextRef().

AL_API void AL_APIENTRY alGetListeneriv | ( | ALenum | param,
|  | ALint * | values
| ) |  |

Definition at line 433 of file alListener.c.

References al_endtry, AL_INVALID_ENUM, AL_ORIENTATION, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), alGetListener3i(), CHECK_VALUE, ALlistener::Forward, GetContextRef(), ALCcontext_struct::Listener, LockContext(), UnlockContext(), and ALlistener::Up.

AL_API void* AL_APIENTRY alGetProcAddress | ( | const ALchar * | fname | ) |

Definition at line 88 of file alExtension.c.

References alcGetProcAddress(), and NULL.

AL_API void AL_APIENTRY alGetSource3f | ( | ALuint | sid,
|  | ALenum | param,
|  | ALfloat * | value1,
|  | ALfloat * | value2,
|  | ALfloat * | value3
| ) |  |

Definition at line 1626 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, AL_NO_ERROR, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), GetSourcedv(), LookupSource, and NULL.

AL_API void AL_APIENTRY alGetSource3i | ( | ALuint | sid,
|  | ALenum | param,
|  | ALint * | value1,
|  | ALint * | value2,
|  | ALint * | value3
| ) |  |

Definition at line 1775 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, AL_NO_ERROR, ALCcontext_DecRef(), alSetError(), GetContextRef(), GetSourceiv(), IntValsByProp(), LookupSource, and NULL.

AL_API void AL_APIENTRY alGetSourcef | ( | ALuint | sid,
|  | ALenum | param,
|  | ALfloat * | value
| ) |  |

Get Source parameters.

Definition at line 1601 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, AL_NO_ERROR, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), GetSourcedv(), LookupSource, and NULL.

AL_API void AL_APIENTRY alGetSourcefv | ( | ALuint | sid,
|  | ALenum | param,
|  | ALfloat * | values
| ) |  |

Definition at line 1655 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, AL_NO_ERROR, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), GetSourcedv(), i, LookupSource, and NULL.

AL_API void AL_APIENTRY alGetSourcei | ( | ALuint | sid,
|  | ALenum | param,
|  | ALint * | value
| ) |  |

Definition at line 1754 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, ALCcontext_DecRef(), alSetError(), GetContextRef(), GetSourceiv(), IntValsByProp(), LookupSource, and NULL.

AL_API void AL_APIENTRY alGetSourceiv | ( | ALuint | sid,
|  | ALenum | param,
|  | ALint * | values
| ) |  |

Definition at line 1804 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, ALCcontext_DecRef(), alSetError(), GetContextRef(), GetSourceiv(), IntValsByProp(), LookupSource, and NULL.

AL_API const ALchar* AL_APIENTRY alGetString | ( | ALenum | param | ) |

State retrieval.

Definition at line 437 of file alState.c.

References al_catchany, al_endtry, AL_EXTENSIONS, AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_OPERATION, AL_INVALID_VALUE, AL_NO_ERROR, AL_OUT_OF_MEMORY, AL_RENDERER, al_throwerr, al_try, AL_VENDOR, AL_VERSION, ALCcontext_DecRef(), alErrInvalidEnum, alErrInvalidName, alErrInvalidOp, alErrInvalidValue, alErrOutOfMemory, alNoError, alRenderer, alVendor, alVersion, ALCcontext_struct::ExtensionList, GetContextRef(), and NULL.

AL_API ALboolean AL_APIENTRY alIsBuffer | ( | ALuint | bid | ) |

Verify a handle is a valid Buffer

Definition at line 272 of file alBuffer.c.

References AL_FALSE, AL_TRUE, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), and LookupBuffer.

AL_API ALboolean AL_APIENTRY alIsEnabled | ( | ALenum | capability | ) |

Definition at line 94 of file alState.c.

References al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_SOURCE_DISTANCE_MODEL, al_throwerr, al_try, ALCcontext_DecRef(), GetContextRef(), and ALCcontext_struct::SourceDistanceModel.

AL_API ALboolean AL_APIENTRY alIsExtensionPresent | ( | const ALchar * | extname | ) |

Extension support.

Query for the presence of an extension, and obtain any appropriate function pointers and enum values.

Definition at line 49 of file alExtension.c.

References al_endtry, AL_FALSE, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::ExtensionList, GetContextRef(), and ret.

AL_API ALboolean AL_APIENTRY alIsSource | ( | ALuint | sid | ) |

Verify a handle is a valid Source.

Definition at line 1334 of file alSource.c.

References AL_FALSE, AL_TRUE, ALCcontext_DecRef(), GetContextRef(), and LookupSource.

AL_API void AL_APIENTRY alListener3f | ( | ALenum | param,
|  | ALfloat | value1,
|  | ALfloat | value2,
|  | ALfloat | value3
| ) |  |

Definition at line 64 of file alListener.c.

References al_endtry, AL_INVALID_ENUM, AL_POSITION, al_throwerr, AL_TRUE, al_try, AL_VELOCITY, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), ALCcontext_struct::Listener, LockContext(), ALlistener::Position, UnlockContext(), ALCcontext_struct::UpdateSources, and ALlistener::Velocity.

AL_API void AL_APIENTRY alListener3i | ( | ALenum | param,
|  | ALint | value1,
|  | ALint | value2,
|  | ALint | value3
| ) |  |

Definition at line 185 of file alListener.c.

References al_endtry, AL_INVALID_ENUM, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), alListener3f(), and GetContextRef().

AL_API void AL_APIENTRY alListenerf | ( | ALenum | param,
|  | ALfloat | value
| ) |  |

OpenAL cross platform audio library Copyright (C) 1999-2000 by authors. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Or go to http://www.gnu.org/copyleft/lgpl.html

Definition at line 29 of file alListener.c.

References al_endtry, AL_GAIN, AL_INVALID_ENUM, AL_METERS_PER_UNIT, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALlistener::Gain, GetContextRef(), ALCcontext_struct::Listener, ALlistener::MetersPerUnit, and ALCcontext_struct::UpdateSources.

AL_API void AL_APIENTRY alListenerfv | ( | ALenum | param,
|  | const ALfloat * | values
| ) |  |

Definition at line 107 of file alListener.c.

References al_endtry, AL_GAIN, AL_INVALID_ENUM, AL_METERS_PER_UNIT, AL_ORIENTATION, AL_POSITION, al_throwerr, AL_TRUE, al_try, AL_VELOCITY, ALCcontext_DecRef(), alListener3f(), alListenerf(), CHECK_VALUE, ALlistener::Forward, GetContextRef(), ALCcontext_struct::Listener, LockContext(), UnlockContext(), ALlistener::Up, and ALCcontext_struct::UpdateSources.

AL_API void AL_APIENTRY alListeneri | ( | ALenum | param,
|  | ALint | value
| ) |  |

Definition at line 162 of file alListener.c.

References al_endtry, AL_INVALID_ENUM, al_throwerr, al_try, ALCcontext_DecRef(), and GetContextRef().

AL_API void AL_APIENTRY alListeneriv | ( | ALenum | param,
|  | const ALint * | values
| ) |  |

Definition at line 214 of file alListener.c.

References al_endtry, AL_INVALID_ENUM, AL_ORIENTATION, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), alListener3f(), alListenerfv(), CHECK_VALUE, and GetContextRef().

AL_API void AL_APIENTRY alSource3f | ( | ALuint | sid,
|  | ALenum | param,
|  | ALfloat | value1,
|  | ALfloat | value2,
|  | ALfloat | value3
| ) |  |

Definition at line 1368 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), LookupSource, NULL, and SetSourcefv().

AL_API void AL_APIENTRY alSource3i | ( | ALuint | sid,
|  | ALenum | param,
|  | ALint | value1,
|  | ALint | value2,
|  | ALint | value3
| ) |  |

Definition at line 1499 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, ALCcontext_DecRef(), alSetError(), GetContextRef(), IntValsByProp(), LookupSource, NULL, and SetSourceiv().

AL_API void AL_APIENTRY alSourcef | ( | ALuint | sid,
|  | ALenum | param,
|  | ALfloat | value
| ) |  |

Set Source parameters.

Definition at line 1350 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), LookupSource, NULL, and SetSourcefv().

AL_API void AL_APIENTRY alSourcefv | ( | ALuint | sid,
|  | ALenum | param,
|  | const ALfloat * | values
| ) |  |

Definition at line 1389 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), LookupSource, NULL, and SetSourcefv().

AL_API void AL_APIENTRY alSourcei | ( | ALuint | sid,
|  | ALenum | param,
|  | ALint | value
| ) |  |

Definition at line 1481 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, ALCcontext_DecRef(), alSetError(), GetContextRef(), IntValsByProp(), LookupSource, NULL, and SetSourceiv().

AL_API void AL_APIENTRY alSourceiv | ( | ALuint | sid,
|  | ALenum | param,
|  | const ALint * | values
| ) |  |

Definition at line 1520 of file alSource.c.

References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, ALCcontext_DecRef(), alSetError(), GetContextRef(), IntValsByProp(), LookupSource, NULL, and SetSourceiv().

AL_API void AL_APIENTRY alSourcePause | ( | ALuint | sid | ) |

Pause a Source

Definition at line 1949 of file alSource.c.

References alSourcePausev().

AL_API void AL_APIENTRY alSourcePausev | ( | ALsizei | ns,
|  | const ALuint * | sids
| ) |  |

Pause a list of Sources

Definition at line 1953 of file alSource.c.

References al_endtry, AL_INVALID_NAME, AL_PAUSED, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DeferUpdates, GetContextRef(), i, LockContext(), LookupSource, ALsource::new_state, SetSourceState(), and UnlockContext().

AL_API void AL_APIENTRY alSourcePlay | ( | ALuint | sid | ) |

Play, replay, or resume a Source

Definition at line 1894 of file alSource.c.

References alSourcePlayv().

AL_API void AL_APIENTRY alSourcePlayv | ( | ALsizei | ns,
|  | const ALuint * | sids
| ) |  |

Play, replay, or resume (if paused) a list of Sources

Definition at line 1898 of file alSource.c.

References ALCcontext_struct::ActiveSourceCount, ALCcontext_struct::ActiveSources, al_endtry, AL_INVALID_NAME, AL_OUT_OF_MEMORY, AL_PLAYING, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DeferUpdates, GetContextRef(), i, LockContext(), LookupSource, ALCcontext_struct::MaxActiveSources, ALsource::new_state, NULL, realloc, SetSourceState(), and UnlockContext().

AL_API void AL_APIENTRY alSourceQueueBuffers | ( | ALuint | sid,
|  | ALsizei | numEntries,
|  | const ALuint * | bids
| ) |  |

Queue buffers onto a source

Definition at line 2058 of file alSource.c.

References al_catchany, al_endtry, AL_INVALID_NAME, AL_INVALID_OPERATION, AL_STATIC, AL_STREAMING, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), ALbufferlistitem::buffer, ALsource::BuffersInQueue, BytesFromFmt(), CalcNonAttnSourceParams(), CalcSourceParams(), ChannelsFromFmt(), CHECK_VALUE, ALCcontext_struct::Device, ALbuffer::FmtChannels, FmtMono, ALbuffer::FmtType, free, ALbuffer::Frequency, GetContextRef(), i, ALbuffer::lock, LockContext(), LookupBuffer, LookupSource, malloc, ALsource::NeedsUpdate, ALbufferlistitem::next, NULL, ALsource::NumChannels, ALbuffer::OriginalChannels, ALbuffer::OriginalType, ALbufferlistitem::prev, ALsource::queue, ReadLock(), ReadUnlock(), ALbuffer::ref, ALsource::SampleSize, ALsource::SourceType, UnlockContext(), and ALsource::Update.

AL_API void AL_APIENTRY alSourceRewind | ( | ALuint | sid | ) |

Rewind a Source (set playback postiton to beginning)

Definition at line 2021 of file alSource.c.

References alSourceRewindv().

AL_API void AL_APIENTRY alSourceRewindv | ( | ALsizei | ns,
|  | const ALuint * | sids
| ) |  |

Rewind a list of Sources

Definition at line 2025 of file alSource.c.

References al_endtry, AL_INITIAL, AL_INVALID_NAME, AL_NONE, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), i, LockContext(), LookupSource, ALsource::new_state, SetSourceState(), and UnlockContext().

AL_API void AL_APIENTRY alSourceStop | ( | ALuint | sid | ) |

Stop a Source

Definition at line 1985 of file alSource.c.

References alSourceStopv().

AL_API void AL_APIENTRY alSourceStopv | ( | ALsizei | ns,
|  | const ALuint * | sids
| ) |  |

Stop a list of Sources

Definition at line 1989 of file alSource.c.

References al_endtry, AL_INVALID_NAME, AL_NONE, AL_STOPPED, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), i, LockContext(), LookupSource, ALsource::new_state, SetSourceState(), and UnlockContext().

AL_API void AL_APIENTRY alSourceUnqueueBuffers | ( | ALuint | sid,
|  | ALsizei | numEntries,
|  | ALuint * | bids
| ) |  |

Unqueue processed buffers from a source

Definition at line 2194 of file alSource.c.

References al_endtry, AL_INVALID_NAME, AL_INVALID_VALUE, AL_STREAMING, al_throwerr, al_try, ALCcontext_DecRef(), ALbufferlistitem::buffer, ALsource::BuffersInQueue, ALsource::BuffersPlayed, CHECK_VALUE, free, GetContextRef(), i, ALbuffer::id, LockContext(), LookupSource, ALsource::Looping, ALbufferlistitem::next, NULL, ALbufferlistitem::prev, ALsource::queue, ALbuffer::ref, ALsource::SourceType, and UnlockContext().

AL_API void AL_APIENTRY alSpeedOfSound | ( | ALfloat | value | ) |

Definition at line 542 of file alState.c.

References al_endtry, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), ALCcontext_struct::SpeedOfSound, and ALCcontext_struct::UpdateSources.