zenilib: zenilib/jni/external/openal-soft/OpenAL32/Include/alMain.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
Classes | Macros | Typedefs | Enumerations | Functions | Variables
alMain.h File Reference
`#include <string.h>`
`#include <stdio.h>`
`#include <stdarg.h>`
`#include <assert.h>`
`#include <math.h>`
`#include "AL/al.h"`
`#include "AL/alc.h"`
`#include "AL/alext.h"`
`#include <unistd.h>`
`#include <pthread.h>`
`#include <sys/time.h>`
`#include <time.h>`
`#include <errno.h>`

Go to the source code of this file.

## Classes

struct | ALCcontext_struct
struct | ALCdevice_struct
struct | BackendFuncs
struct | BackendInfo
struct | EffectList
struct | FPUCtl
struct | RWLock
struct | UIntMap

## Macros

#define | al_catch(val) else if(_al_err == (val))
#define | al_catchany() else
#define | AL_DEFERRED_UPDATES_SOFT 0xC002
#define | al_endtry } while(0)
#define | AL_PRINT(T,...) al_print((T), __FUNCTION__, __VA_ARGS__)
#define | AL_SOFT_deferred_updates 1
#define | al_throw(e)
#define | al_throwerr(ctx, err)
#define | al_try
#define | ALCdevice_AvailableSamples(a) ((a)->Funcs->AvailableSamples((a)))
#define | ALCdevice_CaptureSamples(a, b, c) ((a)->Funcs->CaptureSamples((a), (b), (c)))
#define | ALCdevice_CloseCapture(a) ((a)->Funcs->CloseCapture((a)))
#define | ALCdevice_ClosePlayback(a) ((a)->Funcs->ClosePlayback((a)))
#define | ALCdevice_GetLatency(a) ((a)->Funcs->GetLatency((a)))
#define | ALCdevice_Lock(a) ((a)->Funcs->Lock((a)))
#define | ALCdevice_OpenCapture(a, b) ((a)->Funcs->OpenCapture((a), (b)))
#define | ALCdevice_OpenPlayback(a, b) ((a)->Funcs->OpenPlayback((a), (b)))
#define | ALCdevice_ResetPlayback(a) ((a)->Funcs->ResetPlayback((a)))
#define | ALCdevice_StartCapture(a) ((a)->Funcs->StartCapture((a)))
#define | ALCdevice_StartPlayback(a) ((a)->Funcs->StartPlayback((a)))
#define | ALCdevice_StopCapture(a) ((a)->Funcs->StopCapture((a)))
#define | ALCdevice_StopPlayback(a) ((a)->Funcs->StopPlayback((a)))
#define | ALCdevice_Unlock(a) ((a)->Funcs->Unlock((a)))
#define | BUFFERSIZE 2048
#define | CHECK_VALUE(ctx, cond)
#define | COUNTOF(x) (sizeof((x))/sizeof((x)[0]))
#define | DEFAULT_OUTPUT_RATE (44100)
#define | DEVICE_CHANNELS_REQUEST (1<<2)
#define | DEVICE_FREQUENCY_REQUEST (1<<1)
#define | DEVICE_RUNNING (1<<31)
#define | DEVICE_SAMPLE_TYPE_REQUEST (1<<3)
#define | DEVICE_WIDE_STEREO (1<<16)
#define | ERR(...)
#define | HRIR_BITS (7)
#define | HRIR_LENGTH (1<<HRIR_BITS)
#define | HRIR_MASK (HRIR_LENGTH-1)
#define | HRTFDELAY_BITS (20)
#define | HRTFDELAY_FRACONE (1<<HRTFDELAY_BITS)
#define | HRTFDELAY_MASK (HRTFDELAY_FRACONE-1)
#define | INVALID_OFFSET (~0u)
#define | IS_LITTLE_ENDIAN (EndianTest.b[0] == 1)
#define | IsBadWritePtr(a, b) ((a) == NULL && (b) != 0)
#define | LookupBuffer(m, k) ((struct ALbuffer*)LookupUIntMapKey(&(m)->BufferMap, (k)))
#define | LookupEffect(m, k) ((struct ALeffect*)LookupUIntMapKey(&(m)->EffectMap, (k)))
#define | LookupEffectSlot(m, k) ((struct ALeffectslot*)LookupUIntMapKey(&(m)->EffectSlotMap, (k)))
#define | LookupFilter(m, k) ((struct ALfilter*)LookupUIntMapKey(&(m)->FilterMap, (k)))
#define | LookupSource(m, k) ((struct ALsource*)LookupUIntMapKey(&(m)->SourceMap, (k)))
#define | MAKEU64(x, y) (((ALuint64)(x)<<32)|(ALuint64)(y))
#define | MIN_OUTPUT_RATE (8000)
#define | PRINTF_STYLE(x, y)
#define | RemoveBuffer(m, k) ((struct ALbuffer*)RemoveUIntMapKey(&(m)->BufferMap, (k)))
#define | RemoveEffect(m, k) ((struct ALeffect*)RemoveUIntMapKey(&(m)->EffectMap, (k)))
#define | RemoveEffectSlot(m, k) ((struct ALeffectslot*)RemoveUIntMapKey(&(m)->EffectSlotMap, (k)))
#define | RemoveFilter(m, k) ((struct ALfilter*)RemoveUIntMapKey(&(m)->FilterMap, (k)))
#define | RemoveSource(m, k) ((struct ALsource*)RemoveUIntMapKey(&(m)->SourceMap, (k)))
#define | TRACE(...)
#define | TRACEREF(...)
#define | WARN(...)

## Typedefs

typedef ptrdiff_t | ALintptrEXT
typedef ptrdiff_t | ALsizeiptrEXT
typedef pthread_mutex_t | CRITICAL_SECTION
typedef ALvoid(AL_APIENTRY * | LPALDEFERUPDATESSOFT )(void)
typedef ALvoid(AL_APIENTRY * | LPALPROCESSUPDATESSOFT )(void)
typedef ALuint | RefCount
typedef struct RingBuffer | RingBuffer
typedef struct UIntMap | UIntMap
typedef void *volatile | XchgPtr

## Enumerations

enum | { CPU_CAP_SSE = 1<<0, CPU_CAP_NEON = 1<<1 }
enum | Channel { FrontLeft = 0, FrontRight, FrontCenter, LFE, BackLeft, BackRight, BackCenter, SideLeft, SideRight, MaxChannels }

enum

DevFmtChannels {
DevFmtMono = ALC_MONO_SOFT, DevFmtStereo = ALC_STEREO_SOFT, DevFmtQuad = ALC_QUAD_SOFT, DevFmtX51 = ALC_5POINT1_SOFT,
DevFmtX61 = ALC_6POINT1_SOFT, DevFmtX71 = ALC_7POINT1_SOFT, DevFmtX51Side = 0x80000000, DevFmtChannelsDefault = DevFmtStereo
}

enum

DevFmtType {
DevFmtByte = ALC_BYTE_SOFT, DevFmtUByte = ALC_UNSIGNED_BYTE_SOFT, DevFmtShort = ALC_SHORT_SOFT, DevFmtUShort = ALC_UNSIGNED_SHORT_SOFT,
DevFmtInt = ALC_INT_SOFT, DevFmtUInt = ALC_UNSIGNED_INT_SOFT, DevFmtFloat = ALC_FLOAT_SOFT, DevFmtTypeDefault = DevFmtFloat
}

enum | DeviceType { Playback, Capture, Loopback }
enum | DevProbe { ALL_DEVICE_PROBE, CAPTURE_DEVICE_PROBE }

enum

DistanceModel {
InverseDistanceClamped = AL_INVERSE_DISTANCE_CLAMPED, LinearDistanceClamped = AL_LINEAR_DISTANCE_CLAMPED, ExponentDistanceClamped = AL_EXPONENT_DISTANCE_CLAMPED, InverseDistance = AL_INVERSE_DISTANCE,
LinearDistance = AL_LINEAR_DISTANCE, ExponentDistance = AL_EXPONENT_DISTANCE, DisableDistance = AL_NONE, DefaultDistanceModel = InverseDistanceClamped
}

enum | LogLevel { NoLog, LogError, LogWarning, LogTrace, LogRef }
enum | Resampler { PointResampler, LinearResampler, CubicResampler, ResamplerMax }

## Functions

void * | al_calloc (size_t alignment, size_t size)
void | al_free (void *ptr)
void * | al_malloc (size_t alignment, size_t size)
void | al_print (const char *type, const char *func, const char *fmt,...) PRINTF_STYLE(3
void | alc_alsa_deinit (void)
ALCboolean | alc_alsa_init (BackendFuncs *func_list)
void | alc_alsa_probe (enum DevProbe type)
void | alc_ca_deinit (void)
ALCboolean | alc_ca_init (BackendFuncs *func_list)
void | alc_ca_probe (enum DevProbe type)
void | alc_loopback_deinit (void)
ALCboolean | alc_loopback_init (BackendFuncs *func_list)
void | alc_loopback_probe (enum DevProbe type)
void | alc_null_deinit (void)
ALCboolean | alc_null_init (BackendFuncs *func_list)
void | alc_null_probe (enum DevProbe type)
void | alc_opensl_deinit (void)
ALCboolean | alc_opensl_init (BackendFuncs *func_list)
void | alc_opensl_probe (enum DevProbe type)
void | alc_oss_deinit (void)
ALCboolean | alc_oss_init (BackendFuncs *func_list)
void | alc_oss_probe (enum DevProbe type)
void | alc_pa_deinit (void)
ALCboolean | alc_pa_init (BackendFuncs *func_list)
void | alc_pa_probe (enum DevProbe type)
void | alc_pulse_deinit (void)
ALCboolean | alc_pulse_init (BackendFuncs *func_list)
void | alc_pulse_probe (enum DevProbe type)
void | alc_sndio_deinit (void)
ALCboolean | alc_sndio_init (BackendFuncs *func_list)
void | alc_sndio_probe (enum DevProbe type)
void | alc_solaris_deinit (void)
ALCboolean | alc_solaris_init (BackendFuncs *func_list)
void | alc_solaris_probe (enum DevProbe type)
void | alc_wave_deinit (void)
ALCboolean | alc_wave_init (BackendFuncs *func_list)
void | alc_wave_probe (enum DevProbe type)
void | ALCcontext_DecRef (ALCcontext *context)
void | ALCcontext_IncRef (ALCcontext *context)
ALint64 | ALCdevice_GetLatencyDefault (ALCdevice *device)
void | ALCdevice_LockDefault (ALCdevice *device)
void | ALCdevice_UnlockDefault (ALCdevice *device)
void | alcDSoundDeinit (void)
ALCboolean | alcDSoundInit (BackendFuncs *func_list)
void | alcDSoundProbe (enum DevProbe type)
void | alcMMDevApiDeinit (void)
ALCboolean | alcMMDevApiInit (BackendFuncs *func_list)
void | alcMMDevApiProbe (enum DevProbe type)
void | alcWinMMDeinit (void)
ALCboolean | alcWinMMInit (BackendFuncs *FuncList)
void | alcWinMMProbe (enum DevProbe type)
void | AppendAllDevicesList (const ALCchar *name)
void | AppendCaptureDeviceList (const ALCchar *name)
ALuint | BytesFromDevFmt (enum DevFmtType type)
ALfloat | CalcHrtfDelta (ALfloat oldGain, ALfloat newGain, const ALfloat olddir[3], const ALfloat newdir[3])
ALuint | ChannelsFromDevFmt (enum DevFmtChannels chans)
int | ConfigValueExists (const char *blockName, const char *keyName)
int | ConfigValueFloat (const char *blockName, const char *keyName, float *ret)
int | ConfigValueInt (const char *blockName, const char *keyName, int *ret)
int | ConfigValueStr (const char *blockName, const char *keyName, const char **ret)
int | ConfigValueUInt (const char *blockName, const char *keyName, unsigned int *ret)
RingBuffer * | CreateRingBuffer (ALsizei frame_size, ALsizei length)
void | DeleteCriticalSection (CRITICAL_SECTION *cs)
void | DestroyRingBuffer (RingBuffer *ring)
const ALCchar * | DevFmtChannelsString (enum DevFmtChannels chans)
const ALCchar * | DevFmtTypeString (enum DevFmtType type)
void | EnterCriticalSection (CRITICAL_SECTION *cs)
static __inline ALint | fastf2i (ALfloat f)
static __inline ALuint | fastf2u (ALfloat f)
void | FillCPUCaps (ALuint capfilter)
static __inline ALuint | FrameSizeFromDevFmt (enum DevFmtChannels chans, enum DevFmtType type)
void | FreeALConfig (void)
void | FreeHrtfs (void)
const char * | GetConfigValue (const char *blockName, const char *keyName, const char *def)
int | GetConfigValueBool (const char *blockName, const char *keyName, int def)
ALCcontext * | GetContextRef (void)
struct Hrtf * | GetHrtf (ALCdevice *device)
ALuint | GetHrtfIrSize (const struct Hrtf *Hrtf)
void | GetLerpedHrtfCoeffs (const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat gain, ALfloat(*coeffs)[2], ALuint *delays)
ALuint | GetMovingHrtfCoeffs (const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat gain, ALfloat delta, ALint counter, ALfloat(*coeffs)[2], ALuint *delays, ALfloat(*coeffStep)[2], ALint *delayStep)
void | InitializeCriticalSection (CRITICAL_SECTION *cs)
void | InitUIntMap (UIntMap *map, ALsizei limit)
ALenum | InsertUIntMapEntry (UIntMap *map, ALuint key, ALvoid *value)
void | LeaveCriticalSection (CRITICAL_SECTION *cs)
static __inline void | LockContext (ALCcontext *context)
static __inline void | LockUIntMapRead (UIntMap *map)
static __inline void | LockUIntMapWrite (UIntMap *map)
ALvoid * | LookupUIntMapKey (UIntMap *map, ALuint key)
static __inline ALuint | NextPowerOf2 (ALuint value)
void | ReadALConfig (void)
void | ReadLock (RWLock *lock)
void | ReadRingBuffer (RingBuffer *ring, ALubyte *data, ALsizei len)
void | ReadUnlock (RWLock *lock)
ALvoid * | RemoveUIntMapKey (UIntMap *map, ALuint key)
void | ResetUIntMap (UIntMap *map)
void | RestoreFPUMode (const FPUCtl *ctl)
ALsizei | RingBufferSize (RingBuffer *ring)
void | RWLockInit (RWLock *lock)
void | SetDefaultChannelOrder (ALCdevice *device)
void | SetDefaultWFXChannelOrder (ALCdevice *device)
void | SetMixerFPUMode (FPUCtl *ctl)
void | SetRTPriority (void)
void | Sleep (ALuint t)
ALvoid * | StartThread (ALuint(*func)(ALvoid *), ALvoid *ptr)
ALuint | StopThread (ALvoid *thread)
ALuint | timeGetTime (void)
static __inline void | UnlockContext (ALCcontext *context)
static __inline void | UnlockUIntMapRead (UIntMap *map)
static __inline void | UnlockUIntMapWrite (UIntMap *map)
void | WriteLock (RWLock *lock)
void | WriteRingBuffer (RingBuffer *ring, const ALubyte *data, ALsizei len)
void | WriteUnlock (RWLock *lock)

## Variables

ALuint | CPUCapFlags
struct EffectList | EffectList []
union {
ALubyte b [sizeof(ALuint)]
ALuint u
} | EndianTest = { 1 }
FILE * | LogFile
enum LogLevel | LogLevel
ALint | RTPrioLevel
UIntMap | TlsDestructor

## Macro Definition Documentation

#define al_catch | ( |  | val | ) | else if(_al_err == (val))

After a try or another catch block, runs the next block if the given value was thrown.

Definition at line 846 of file alMain.h.

#define al_catchany | ( |  | ) | else

After a try or catch block, runs the next block for any value thrown and not caught.

Definition at line 851 of file alMain.h.

Referenced by alGenAuxiliaryEffectSlots(), alGenBuffers(), alGenEffects(), alGenFilters(), alGenSources(), alGetString(), and alSourceQueueBuffers().

#define AL_DEFERRED_UPDATES_SOFT 0xC002

Definition at line 20 of file alMain.h.

Referenced by alGetBoolean(), alGetBooleanv(), alGetDouble(), alGetDoublev(), alGetFloat(), alGetFloatv(), alGetInteger(), and alGetIntegerv().

#define al_endtry } while(0)

Marks the end of the final catch (or the try) block.

Definition at line 853 of file alMain.h.

Referenced by alAuxiliaryEffectSlotf(), alAuxiliaryEffectSlotfv(), alAuxiliaryEffectSloti(), alAuxiliaryEffectSlotiv(), alBuffer3f(), alBuffer3i(), alBufferData(), alBufferf(), alBufferfv(), alBufferi(), alBufferiv(), alBufferSamplesSOFT(), alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), alDeleteAuxiliaryEffectSlots(), alDeleteBuffers(), alDeleteEffects(), alDeleteFilters(), alDeleteSources(), alDisable(), alDistanceModel(), alDopplerFactor(), alDopplerVelocity(), alEnable(), alGenAuxiliaryEffectSlots(), alGenBuffers(), alGenEffects(), alGenFilters(), alGenSources(), alGetAuxiliaryEffectSlotf(), alGetAuxiliaryEffectSlotfv(), alGetAuxiliaryEffectSloti(), alGetAuxiliaryEffectSlotiv(), alGetBoolean(), alGetBooleanv(), alGetBuffer3f(), alGetBuffer3i(), alGetBufferf(), alGetBufferfv(), alGetBufferi(), alGetBufferiv(), alGetBufferSamplesSOFT(), alGetDouble(), alGetDoublev(), alGetFloat(), alGetFloatv(), alGetInteger(), alGetIntegerv(), alGetListener3f(), alGetListener3i(), alGetListenerf(), alGetListenerfv(), alGetListeneri(), alGetListeneriv(), alGetString(), alIsEnabled(), alIsExtensionPresent(), alListener3f(), alListener3i(), alListenerf(), alListenerfv(), alListeneri(), alListeneriv(), alSourcePausev(), alSourcePlayv(), alSourceQueueBuffers(), alSourceRewindv(), alSourceStopv(), alSourceUnqueueBuffers(), and alSpeedOfSound().

#define AL_PRINT | ( |  | T,
|  |  | ...
| ) |  | al_print((T), __FUNCTION__, __VA_ARGS__)

Definition at line 789 of file alMain.h.

#define AL_SOFT_deferred_updates 1

Definition at line 19 of file alMain.h.

#define al_throw | ( |  | e | ) |

Value:
do { \
_al_err = (e); \
assert(_al_err != 0); \
goto _al_try_label; \
} while(0)
e
return Display return Display Bool Bool int int e
Definition: SDL_x11sym.h:30
assert
#define assert(x)
Definition: SDL_malloc.c:1234

The given integer value is "thrown" so as to be caught by a catch block. Must be called in a try block within the same function. The value must not be 0.

Definition at line 860 of file alMain.h.

#define al_throwerr | ( |  | ctx,
|  |  | err
| ) |  |

Value:
do { \
alSetError((ctx), (err)); \
al_throw((err)); \
} while(0)
al_throw
#define al_throw(e)
Definition: alMain.h:860
alSetError
ALvoid alSetError(ALCcontext *Context, ALenum errorCode)
Definition: alError.c:31
ctx
EGLContext ctx
Definition: eglext.h:87

Sets an AL error on the given context, before throwing the error code.

Definition at line 866 of file alMain.h.

Referenced by alAuxiliaryEffectSlotf(), alAuxiliaryEffectSlotfv(), alAuxiliaryEffectSloti(), alAuxiliaryEffectSlotiv(), alBuffer3f(), alBuffer3i(), alBufferData(), alBufferf(), alBufferfv(), alBufferi(), alBufferiv(), alBufferSamplesSOFT(), alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), alDeleteAuxiliaryEffectSlots(), alDeleteBuffers(), alDeleteEffects(), alDeleteFilters(), alDeleteSources(), alDisable(), alEnable(), alGenAuxiliaryEffectSlots(), alGenBuffers(), alGenEffects(), alGenFilters(), alGenSources(), alGetAuxiliaryEffectSlotf(), alGetAuxiliaryEffectSlotfv(), alGetAuxiliaryEffectSloti(), alGetAuxiliaryEffectSlotiv(), alGetBoolean(), alGetBooleanv(), alGetBuffer3f(), alGetBuffer3i(), alGetBufferf(), alGetBufferfv(), alGetBufferi(), alGetBufferiv(), alGetBufferSamplesSOFT(), alGetDouble(), alGetDoublev(), alGetFloat(), alGetFloatv(), alGetInteger(), alGetIntegerv(), alGetListener3f(), alGetListener3i(), alGetListenerf(), alGetListenerfv(), alGetListeneri(), alGetListeneriv(), alGetString(), alIsEnabled(), alListener3f(), alListener3i(), alListenerf(), alListenerfv(), alListeneri(), alListeneriv(), alSourcePausev(), alSourcePlayv(), alSourceQueueBuffers(), alSourceRewindv(), alSourceStopv(), and alSourceUnqueueBuffers().

#define al_try

Value:
do { \
int _al_err=0; \
_al_try_label: \
if(_al_err == 0)
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
int
int
Definition: SDL_systhread.c:37

Starts a try block. Must not be nested within another try block within the same function.

Definition at line 838 of file alMain.h.

Referenced by alAuxiliaryEffectSlotf(), alAuxiliaryEffectSlotfv(), alAuxiliaryEffectSloti(), alAuxiliaryEffectSlotiv(), alBuffer3f(), alBuffer3i(), alBufferData(), alBufferf(), alBufferfv(), alBufferi(), alBufferiv(), alBufferSamplesSOFT(), alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), alDeleteAuxiliaryEffectSlots(), alDeleteBuffers(), alDeleteEffects(), alDeleteFilters(), alDeleteSources(), alDisable(), alDistanceModel(), alDopplerFactor(), alDopplerVelocity(), alEnable(), alGenAuxiliaryEffectSlots(), alGenBuffers(), alGenEffects(), alGenFilters(), alGenSources(), alGetAuxiliaryEffectSlotf(), alGetAuxiliaryEffectSlotfv(), alGetAuxiliaryEffectSloti(), alGetAuxiliaryEffectSlotiv(), alGetBoolean(), alGetBooleanv(), alGetBuffer3f(), alGetBuffer3i(), alGetBufferf(), alGetBufferfv(), alGetBufferi(), alGetBufferiv(), alGetBufferSamplesSOFT(), alGetDouble(), alGetDoublev(), alGetFloat(), alGetFloatv(), alGetInteger(), alGetIntegerv(), alGetListener3f(), alGetListener3i(), alGetListenerf(), alGetListenerfv(), alGetListeneri(), alGetListeneriv(), alGetString(), alIsEnabled(), alIsExtensionPresent(), alListener3f(), alListener3i(), alListenerf(), alListenerfv(), alListeneri(), alListeneriv(), alSourcePausev(), alSourcePlayv(), alSourceQueueBuffers(), alSourceRewindv(), alSourceStopv(), alSourceUnqueueBuffers(), and alSpeedOfSound().

#define ALCdevice_AvailableSamples | ( |  | a | ) | ((a)->Funcs->AvailableSamples((a)))

Definition at line 645 of file alMain.h.

Referenced by alcCaptureSamples(), and alcGetIntegerv().

#define ALCdevice_CaptureSamples | ( |  | a,
|  |  | b,
|  |  | c
| ) |  | ((a)->Funcs->CaptureSamples((a), (b), (c)))

Definition at line 644 of file alMain.h.

Referenced by alcCaptureSamples().

#define ALCdevice_CloseCapture | ( |  | a | ) | ((a)->Funcs->CloseCapture((a)))

Definition at line 641 of file alMain.h.

Referenced by FreeDevice().

#define ALCdevice_ClosePlayback | ( |  | a | ) | ((a)->Funcs->ClosePlayback((a)))

Definition at line 636 of file alMain.h.

Referenced by FreeDevice().

#define ALCdevice_GetLatency | ( |  | a | ) | ((a)->Funcs->GetLatency((a)))

Definition at line 648 of file alMain.h.

Referenced by GetSourcedv(), and GetSourcei64v().

#define ALCdevice_Lock | ( |  | a | ) | ((a)->Funcs->Lock((a)))

Definition at line 646 of file alMain.h.

Referenced by alcCaptureSamples(), alcCaptureStart(), alcCaptureStop(), alcCreateContext(), alcGetIntegerv(), ALSANoMMapProc(), ALSAProc(), aluMixData(), DSoundPlaybackProc(), InitializeEffect(), LockContext(), MMDevApiProc(), OSSCaptureProc(), OSSProc(), ReleaseContext(), sndio_proc(), SolarisProc(), UpdateDeviceParams(), and WaveProc().

#define ALCdevice_OpenCapture | ( |  | a,
|  |  | b
| ) |  | ((a)->Funcs->OpenCapture((a), (b)))

Definition at line 640 of file alMain.h.

Referenced by alcCaptureOpenDevice().

#define ALCdevice_OpenPlayback | ( |  | a,
|  |  | b
| ) |  | ((a)->Funcs->OpenPlayback((a), (b)))

Definition at line 635 of file alMain.h.

Referenced by alcLoopbackOpenDeviceSOFT(), and alcOpenDevice().

#define ALCdevice_ResetPlayback | ( |  | a | ) | ((a)->Funcs->ResetPlayback((a)))

Definition at line 637 of file alMain.h.

Referenced by UpdateDeviceParams().

#define ALCdevice_StartCapture | ( |  | a | ) | ((a)->Funcs->StartCapture((a)))

Definition at line 642 of file alMain.h.

Referenced by alcCaptureStart().

#define ALCdevice_StartPlayback | ( |  | a | ) | ((a)->Funcs->StartPlayback((a)))

Definition at line 638 of file alMain.h.

Referenced by UpdateDeviceParams().

#define ALCdevice_StopCapture | ( |  | a | ) | ((a)->Funcs->StopCapture((a)))

Definition at line 643 of file alMain.h.

Referenced by alcCaptureStop().

#define ALCdevice_StopPlayback | ( |  | a | ) | ((a)->Funcs->StopPlayback((a)))

Definition at line 639 of file alMain.h.

Referenced by alcCloseDevice(), alcCreateContext(), alcDestroyContext(), and UpdateDeviceParams().

#define ALCdevice_Unlock | ( |  | a | ) | ((a)->Funcs->Unlock((a)))

Definition at line 647 of file alMain.h.

Referenced by alcCaptureSamples(), alcCaptureStart(), alcCaptureStop(), alcCreateContext(), alcGetIntegerv(), ALSANoMMapProc(), ALSAProc(), aluMixData(), DSoundPlaybackProc(), InitializeEffect(), MMDevApiProc(), OSSCaptureProc(), OSSProc(), ReleaseContext(), sndio_proc(), SolarisProc(), UnlockContext(), UpdateDeviceParams(), and WaveProc().

#define BUFFERSIZE 2048

Definition at line 556 of file alMain.h.

Referenced by aluMixData(), CalcNonAttnSourceParams(), CalcSourceParams(), InitEffectSlot(), MixDirect_C(), MixDirect_Hrtf(), MixDirect_SSE(), MixSend_C(), MixSend_SSE(), and MixSource().

#define CHECK_VALUE | ( |  | ctx,
|  |  | cond
| ) |  |

Value:
do { \
if(!(cond)) \
al_throwerr((ctx), AL_INVALID_VALUE); \
} while(0)
al_throwerr
#define al_throwerr(ctx, err)
Definition: alMain.h:866
AL_INVALID_VALUE
#define AL_INVALID_VALUE
Definition: al.h:373
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
ctx
EGLContext ctx
Definition: eglext.h:87

Throws an AL_INVALID_VALUE error with the given ctx if the given condition is false.

Definition at line 875 of file alMain.h.

Referenced by alAuxiliaryEffectSlotf(), alAuxiliaryEffectSloti(), alBufferData(), alBufferfv(), alBufferiv(), alBufferSamplesSOFT(), alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), alDeleteAuxiliaryEffectSlots(), alDeleteBuffers(), alDeleteEffects(), alDeleteFilters(), alDeleteSources(), alDistanceModel(), alDopplerFactor(), alDopplerVelocity(), alGenAuxiliaryEffectSlots(), alGenBuffers(), alGenEffects(), alGenFilters(), alGenSources(), alGetBooleanv(), alGetBuffer3f(), alGetBuffer3i(), alGetBufferf(), alGetBufferfv(), alGetBufferi(), alGetBufferiv(), alGetBufferSamplesSOFT(), alGetDoublev(), alGetFloatv(), alGetIntegerv(), alGetListener3f(), alGetListener3i(), alGetListenerf(), alGetListenerfv(), alGetListeneri(), alGetListeneriv(), alIsExtensionPresent(), alListener3f(), alListenerf(), alListenerfv(), alListeneriv(), alSourcePausev(), alSourcePlayv(), alSourceQueueBuffers(), alSourceRewindv(), alSourceStopv(), alSourceUnqueueBuffers(), and alSpeedOfSound().

#define COUNTOF | ( |  | x | ) | (sizeof((x))/sizeof((x)[0]))

Definition at line 63 of file alMain.h.

Referenced by alcOpenDevice(), alsa_reset_playback(), DecomposeDevFormat(), DecomposeFormat(), and DecomposeUserFormat().

#define DEFAULT_OUTPUT_RATE (44100)

Definition at line 342 of file alMain.h.

Referenced by alcLoopbackOpenDeviceSOFT(), and alcOpenDevice().

#define DEVICE_CHANNELS_REQUEST (1<<2)

Definition at line 653 of file alMain.h.

Referenced by alcCaptureOpenDevice(), alcOpenDevice(), DoReset(), DSoundResetPlayback(), and UpdateDeviceParams().

#define DEVICE_FREQUENCY_REQUEST (1<<1)

Definition at line 651 of file alMain.h.

Referenced by alcCaptureOpenDevice(), alcOpenDevice(), DoReset(), and UpdateDeviceParams().

#define DEVICE_RUNNING (1<<31)

Definition at line 661 of file alMain.h.

Referenced by alcCaptureStart(), alcCaptureStop(), alcCloseDevice(), alcCreateContext(), alcDestroyContext(), and UpdateDeviceParams().

#define DEVICE_SAMPLE_TYPE_REQUEST (1<<3)

Definition at line 655 of file alMain.h.

Referenced by alcCaptureOpenDevice(), alcOpenDevice(), DSoundResetPlayback(), and UpdateDeviceParams().

#define DEVICE_WIDE_STEREO (1<<16)

Definition at line 658 of file alMain.h.

Referenced by CalcNonAttnSourceParams(), and UpdateDeviceParams().

#define ERR | ( |  | ... | ) |

Value:
do { \
if(LogLevel >= LogError) \
AL_PRINT("(EE)", __VA_ARGS__); \
} while(0)
LogError
Definition: alMain.h:794
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
LogLevel
LogLevel
Definition: alMain.h:792
AL_PRINT
#define AL_PRINT(T,...)
Definition: alMain.h:789

Definition at line 816 of file alMain.h.

Referenced by alc_cleanup(), alc_initconfig(), alcDSoundProbe(), alcMMDevApiProbe(), alcOpenDevice(), alsa_available_samples(), alsa_capture_samples(), alsa_get_latency(), alsa_open_capture(), alsa_open_playback(), alsa_reset_playback(), alsa_start_capture(), alsa_start_playback(), alsa_stop_capture(), ALSANoMMapProc(), ALSAProc(), AppendList(), ca_capture_callback(), ca_capture_samples(), ca_open_capture(), ca_open_playback(), ca_reset_playback(), ca_start_capture(), ca_start_playback(), ca_stop_capture(), ca_stop_playback(), DoReset(), DSoundAvailableSamples(), DSoundLoad(), DSoundOpenCapture(), DSoundOpenPlayback(), DSoundPlaybackProc(), DSoundResetPlayback(), DSoundStartCapture(), DSoundStopCapture(), FillCPUCaps(), GetHrtf(), GetSourcedv(), GetSourcei64v(), GetSourceiv(), LoadConfigFromFile(), LoadHrtf(), LoadHrtf00(), LoadHrtf01(), MakeExtensible(), MMDevApiLoad(), MMDevApiMsgProc(), MMDevApiOpenPlayback(), MMDevApiProc(), NewThunkEntry(), oss_open_capture(), oss_open_playback(), oss_reset_playback(), oss_stop_playback(), OSSCaptureProc(), OSSProc(), pa_close_capture(), pa_close_playback(), pa_load(), pa_open_capture(), pa_open_playback(), pa_reset_playback(), pa_start_capture(), pa_start_playback(), pa_stop_capture(), pa_stop_playback(), probe_devices(), ProbeDevices(), SetRTPriority(), SetSourcefv(), SetSourcei64v(), SetSourceiv(), SetSpeakerArrangement(), sndio_open_playback(), sndio_proc(), sndio_reset_playback(), sndio_start_playback(), sndio_stop_playback(), solaris_open_playback(), solaris_reset_playback(), solaris_stop_playback(), SolarisProc(), UpdateDeviceParams(), WaitForResponse(), wave_open_playback(), wave_reset_playback(), wave_start_playback(), WaveProc(), WinMMOpenCapture(), WinMMOpenPlayback(), and WinMMResetPlayback().

#define HRIR_BITS (7)

Definition at line 775 of file alMain.h.

#define HRIR_LENGTH (1<<HRIR_BITS)

Definition at line 776 of file alMain.h.

Referenced by CalcNonAttnSourceParams(), GetMovingHrtfCoeffs(), MixDirect_Hrtf(), and SetSourceState().

#define HRIR_MASK (HRIR_LENGTH-1)

Definition at line 777 of file alMain.h.

Referenced by ApplyCoeffs(), ApplyCoeffsStep(), and MixDirect_Hrtf().

#define HRTFDELAY_BITS (20)

Definition at line 778 of file alMain.h.

Referenced by GetLerpedHrtfCoeffs(), GetMovingHrtfCoeffs(), and MixDirect_Hrtf().

#define HRTFDELAY_FRACONE (1<<HRTFDELAY_BITS)

Definition at line 779 of file alMain.h.

Referenced by MixDirect_Hrtf().

#define HRTFDELAY_MASK (HRTFDELAY_FRACONE-1)

Definition at line 780 of file alMain.h.

Referenced by MixDirect_Hrtf().

#define INVALID_OFFSET (~0u)

Definition at line 664 of file alMain.h.

Referenced by SetDefaultChannelOrder(), and SetDefaultWFXChannelOrder().

#define IS_LITTLE_ENDIAN (EndianTest.b[0] == 1)

Definition at line 61 of file alMain.h.

Referenced by DecodeByte3(), DecodeUByte3(), EncodeByte3(), EncodeUByte3(), and WaveProc().

#define IsBadWritePtr | ( |  | a,
|  |  | b
| ) |  | ((a) == NULL && (b) != 0)

Definition at line 99 of file alMain.h.

#define LookupBuffer | ( |  | m,
|  |  | k
| ) |  | ((struct ALbuffer*)LookupUIntMapKey(&(m)->BufferMap, (k)))

Definition at line 667 of file alMain.h.

Referenced by alBuffer3f(), alBuffer3i(), alBufferData(), alBufferf(), alBufferfv(), alBufferi(), alBufferiv(), alBufferSamplesSOFT(), alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), alDeleteBuffers(), alGetBuffer3f(), alGetBuffer3i(), alGetBufferf(), alGetBufferfv(), alGetBufferi(), alGetBufferiv(), alGetBufferSamplesSOFT(), alIsBuffer(), alSourceQueueBuffers(), and SetSourceiv().

#define LookupEffect | ( |  | m,
|  |  | k
| ) |  | ((struct ALeffect*)LookupUIntMapKey(&(m)->EffectMap, (k)))

Definition at line 668 of file alMain.h.

Referenced by alAuxiliaryEffectSloti(), alDeleteEffects(), alEffectf(), alEffectfv(), alEffecti(), alEffectiv(), alGetEffectf(), alGetEffectfv(), alGetEffecti(), alGetEffectiv(), and alIsEffect().

#define LookupEffectSlot | ( |  | m,
|  |  | k
| ) |  | ((struct ALeffectslot*)LookupUIntMapKey(&(m)->EffectSlotMap, (k)))

Definition at line 711 of file alMain.h.

Referenced by AddEffectSlotArray(), alAuxiliaryEffectSlotf(), alAuxiliaryEffectSlotfv(), alAuxiliaryEffectSloti(), alAuxiliaryEffectSlotiv(), alDeleteAuxiliaryEffectSlots(), alGetAuxiliaryEffectSlotf(), alGetAuxiliaryEffectSlotfv(), alGetAuxiliaryEffectSloti(), alGetAuxiliaryEffectSlotiv(), alIsAuxiliaryEffectSlot(), and SetSourceiv().

#define LookupFilter | ( |  | m,
|  |  | k
| ) |  | ((struct ALfilter*)LookupUIntMapKey(&(m)->FilterMap, (k)))

Definition at line 669 of file alMain.h.

Referenced by alDeleteFilters(), alFilterf(), alFilterfv(), alFilteri(), alFilteriv(), alGetFilterf(), alGetFilterfv(), alGetFilteri(), alGetFilteriv(), alIsFilter(), and SetSourceiv().

#define LookupSource | ( |  | m,
|  |  | k
| ) |  | ((struct ALsource*)LookupUIntMapKey(&(m)->SourceMap, (k)))

Definition at line 710 of file alMain.h.

Referenced by alDeleteSources(), alGetSource3dSOFT(), alGetSource3f(), alGetSource3i(), alGetSource3i64SOFT(), alGetSourcedSOFT(), alGetSourcedvSOFT(), alGetSourcef(), alGetSourcefv(), alGetSourcei(), alGetSourcei64SOFT(), alGetSourcei64vSOFT(), alGetSourceiv(), alIsSource(), alSource3dSOFT(), alSource3f(), alSource3i(), alSource3i64SOFT(), alSourcedSOFT(), alSourcedvSOFT(), alSourcef(), alSourcefv(), alSourcei(), alSourcei64SOFT(), alSourcei64vSOFT(), alSourceiv(), alSourcePausev(), alSourcePlayv(), alSourceQueueBuffers(), alSourceRewindv(), alSourceStopv(), and alSourceUnqueueBuffers().

#define MAKEU64 | ( |  | x,
|  |  | y
| ) |  | (((ALuint64)(x)<<32)|(ALuint64)(y))

Definition at line 48 of file alMain.h.

Referenced by GetSourceOffset().

#define MIN_OUTPUT_RATE (8000)

Definition at line 343 of file alMain.h.

Referenced by alcIsRenderFormatSupportedSOFT(), alcOpenDevice(), and UpdateDeviceParams().

#define PRINTF_STYLE | ( |  | x,
|  |  | y
| ) |  |

Definition at line 53 of file alMain.h.

#define RemoveBuffer | ( |  | m,
|  |  | k
| ) |  | ((struct ALbuffer*)RemoveUIntMapKey(&(m)->BufferMap, (k)))

Definition at line 670 of file alMain.h.

Referenced by alDeleteBuffers().

#define RemoveEffect | ( |  | m,
|  |  | k
| ) |  | ((struct ALeffect*)RemoveUIntMapKey(&(m)->EffectMap, (k)))

Definition at line 671 of file alMain.h.

Referenced by alDeleteEffects().

#define RemoveEffectSlot | ( |  | m,
|  |  | k
| ) |  | ((struct ALeffectslot*)RemoveUIntMapKey(&(m)->EffectSlotMap, (k)))

Definition at line 713 of file alMain.h.

Referenced by alDeleteAuxiliaryEffectSlots().

#define RemoveFilter | ( |  | m,
|  |  | k
| ) |  | ((struct ALfilter*)RemoveUIntMapKey(&(m)->FilterMap, (k)))

Definition at line 672 of file alMain.h.

Referenced by alDeleteFilters().

#define RemoveSource | ( |  | m,
|  |  | k
| ) |  | ((struct ALsource*)RemoveUIntMapKey(&(m)->SourceMap, (k)))

Definition at line 712 of file alMain.h.

Referenced by alDeleteSources().

#define TRACE | ( |  | ... | ) |

Value:
do { \
if(LogLevel >= LogTrace) \
AL_PRINT("(II)", __VA_ARGS__); \
} while(0)
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
LogLevel
LogLevel
Definition: alMain.h:792
AL_PRINT
#define AL_PRINT(T,...)
Definition: alMain.h:789
LogTrace
Definition: alMain.h:796

Definition at line 806 of file alMain.h.

Referenced by add_device(), alc_initconfig(), alcCaptureOpenDevice(), alcCreateContext(), alcLoopbackOpenDeviceSOFT(), alcMMDevApiDeinit(), alcOpenDevice(), AllocLines(), alsa_open_capture(), ca_reset_playback(), DSoundEnumCaptureDevices(), DSoundEnumPlaybackDevices(), FillCPUCaps(), FreeContext(), FreeDevice(), GetConfigValue(), LoadConfigFromFile(), LoadHrtf(), LoadReverbPreset(), MMDevApiMsgProc(), probe_devices(), and UpdateDeviceParams().

#define TRACEREF | ( |  | ... | ) |

Value:
do { \
if(LogLevel >= LogRef) \
AL_PRINT("(--)", __VA_ARGS__); \
} while(0)
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
LogLevel
LogLevel
Definition: alMain.h:792
LogRef
Definition: alMain.h:797
AL_PRINT
#define AL_PRINT(T,...)
Definition: alMain.h:789

Definition at line 801 of file alMain.h.

Referenced by ALCcontext_DecRef(), ALCcontext_IncRef(), ALCdevice_DecRef(), and ALCdevice_IncRef().

#define WARN | ( |  | ... | ) |

Value:
do { \
if(LogLevel >= LogWarning) \
AL_PRINT("(WW)", __VA_ARGS__); \
} while(0)
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
LogLevel
LogLevel
Definition: alMain.h:792
LogWarning
Definition: alMain.h:795
AL_PRINT
#define AL_PRINT(T,...)
Definition: alMain.h:789

Definition at line 811 of file alMain.h.

Referenced by alc_initconfig(), alcCloseDevice(), ALSANoMMapProc(), ALSAProc(), DSoundOpenCapture(), DSoundPlaybackProc(), FreeContext(), FreeDevice(), get_device_name(), LoadConfigFromFile(), LoadReverbPreset(), MMDevApiMsgProc(), ReleaseContext(), ReleaseThreadCtx(), and UpdateDeviceParams().

## Typedef Documentation

typedef ptrdiff_t ALintptrEXT

Definition at line 45 of file alMain.h.

typedef ptrdiff_t ALsizeiptrEXT

Definition at line 46 of file alMain.h.

typedef pthread_mutex_t CRITICAL_SECTION

Definition at line 101 of file alMain.h.

typedef ALvoid(AL_APIENTRY* LPALDEFERUPDATESSOFT)(void)

Definition at line 21 of file alMain.h.

typedef ALvoid(AL_APIENTRY* LPALPROCESSUPDATESSOFT)(void)

Definition at line 22 of file alMain.h.

typedef ALuint RefCount

Definition at line 288 of file alMain.h.

typedef struct RingBuffer RingBuffer

Definition at line 750 of file alMain.h.

typedef struct UIntMap UIntMap

typedef void* volatile XchgPtr

Definition at line 119 of file alMain.h.

## Enumeration Type Documentation

anonymous enum

Enumerator
CPU_CAP_SSE |
CPU_CAP_NEON |

Definition at line 826 of file alMain.h.

enum Channel

Enumerator
FrontLeft |
FrontRight |
FrontCenter |
LFE |
BackLeft |
BackRight |
BackCenter |
SideLeft |
SideRight |
MaxChannels |

Definition at line 480 of file alMain.h.

enum DevFmtChannels

Enumerator
DevFmtMono |
DevFmtStereo |
DevFmtQuad |
DevFmtX51 |
DevFmtX61 |
DevFmtX71 |
DevFmtX51Side |
DevFmtChannelsDefault |

Definition at line 507 of file alMain.h.

enum DevFmtType

Enumerator
DevFmtByte |
DevFmtUByte |
DevFmtShort |
DevFmtUShort |
DevFmtInt |
DevFmtUInt |
DevFmtFloat |
DevFmtTypeDefault |

Definition at line 496 of file alMain.h.

enum DeviceType

Enumerator
Playback |
Capture |
Loopback |

Definition at line 538 of file alMain.h.

enum DevProbe

Enumerator
ALL_DEVICE_PROBE |
CAPTURE_DEVICE_PROBE |

Definition at line 383 of file alMain.h.

enum DistanceModel

Enumerator
InverseDistanceClamped |
LinearDistanceClamped |
ExponentDistanceClamped |
InverseDistance |
LinearDistance |
ExponentDistance |
DisableDistance |
DefaultDistanceModel |

Definition at line 460 of file alMain.h.

enum LogLevel

Enumerator
NoLog |
LogError |
LogWarning |
LogTrace |
LogRef |

Definition at line 792 of file alMain.h.

enum Resampler

Enumerator
PointResampler |
LinearResampler |
CubicResampler |
ResamplerMax |

Definition at line 472 of file alMain.h.

## Function Documentation

void* al_calloc | ( | size_t | alignment,
|  | size_t | size
| ) |  |

Definition at line 161 of file helpers.c.

References al_malloc(), memset, and ret.

Referenced by alcCaptureOpenDevice(), alcLoopbackOpenDeviceSOFT(), alcOpenDevice(), alGenAuxiliaryEffectSlots(), and alGenSources().

void al_free | ( | void * | ptr | ) |

Definition at line 168 of file helpers.c.

References free, and NULL.

Referenced by alcCaptureOpenDevice(), alcOpenDevice(), alDeleteAuxiliaryEffectSlots(), alDeleteSources(), alGenAuxiliaryEffectSlots(), alGenSources(), FreeDevice(), ReleaseALAuxiliaryEffectSlots(), and ReleaseALSources().

void* al_malloc | ( | size_t | alignment,
|  | size_t | size
| ) |  |

Definition at line 137 of file helpers.c.

References malloc, NULL, and ret.

Referenced by al_calloc().

void al_print | ( | const char * | type,
|  | const char * | func,
|  | const char * | fmt,
|  |  | ...
| ) |  |

void alc_alsa_deinit | ( | void |  | ) |

Definition at line 1308 of file alsa.c.

References allCaptureDevNameMap, allDevNameMap, free, i, NULL, numCaptureDevNames, and numDevNames.

ALCboolean alc_alsa_init | ( | BackendFuncs * | func_list | ) |

Definition at line 1300 of file alsa.c.

References ALC_FALSE, ALC_TRUE, alsa_funcs, and alsa_load().

void alc_alsa_probe | ( | enum DevProbe | type | ) |

Definition at line 1337 of file alsa.c.

References ALL_DEVICE_PROBE, allCaptureDevNameMap, allDevNameMap, AppendAllDevicesList(), AppendCaptureDeviceList(), CAPTURE_DEVICE_PROBE, free, i, numCaptureDevNames, numDevNames, and probe_devices().

void alc_ca_deinit | ( | void |  | ) |

Definition at line 691 of file coreaudio.c.

ALCboolean alc_ca_init | ( | BackendFuncs * | func_list | ) |

Definition at line 685 of file coreaudio.c.

References ALC_TRUE, and ca_funcs.

void alc_ca_probe | ( | enum DevProbe | type | ) |

Definition at line 695 of file coreaudio.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), AppendCaptureDeviceList(), ca_device, and CAPTURE_DEVICE_PROBE.

void alc_loopback_deinit | ( | void |  | ) |

Definition at line 81 of file loopback.c.

ALCboolean alc_loopback_init | ( | BackendFuncs * | func_list | ) |

Definition at line 75 of file loopback.c.

References ALC_TRUE, and loopback_funcs.

void alc_loopback_probe | ( | enum DevProbe | type | ) |

Definition at line 85 of file loopback.c.

void alc_null_deinit | ( | void |  | ) |

Definition at line 158 of file null.c.

ALCboolean alc_null_init | ( | BackendFuncs * | func_list | ) |

Definition at line 152 of file null.c.

References ALC_TRUE, and null_funcs.

void alc_null_probe | ( | enum DevProbe | type | ) |

Definition at line 162 of file null.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), CAPTURE_DEVICE_PROBE, and nullDevice.

void alc_opensl_deinit | ( | void |  | ) |

Definition at line 428 of file opensl.c.

ALCboolean alc_opensl_init | ( | BackendFuncs * | func_list | ) |

Definition at line 422 of file opensl.c.

References ALC_TRUE, and opensl_funcs.

void alc_opensl_probe | ( | enum DevProbe | type | ) |

Definition at line 432 of file opensl.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), CAPTURE_DEVICE_PROBE, and opensl_device.

void alc_oss_deinit | ( | void |  | ) |

Definition at line 509 of file oss.c.

ALCboolean alc_oss_init | ( | BackendFuncs * | func_list | ) |

Definition at line 500 of file oss.c.

References ALC_TRUE, ConfigValueStr(), oss_capture, oss_driver, and oss_funcs.

void alc_oss_probe | ( | enum DevProbe | type | ) |

Definition at line 513 of file oss.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), AppendCaptureDeviceList(), CAPTURE_DEVICE_PROBE, oss_capture, oss_device, and oss_driver.

void alc_pa_deinit | ( | void |  | ) |

Definition at line 447 of file portaudio.c.

References NULL.

ALCboolean alc_pa_init | ( | BackendFuncs * | func_list | ) |

Definition at line 439 of file portaudio.c.

References ALC_FALSE, ALC_TRUE, pa_funcs, and pa_load().

void alc_pa_probe | ( | enum DevProbe | type | ) |

Definition at line 461 of file portaudio.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), AppendCaptureDeviceList(), CAPTURE_DEVICE_PROBE, and pa_device.

void alc_pulse_deinit | ( | void |  | ) |

Definition at line 1548 of file pulseaudio.c.

ALCboolean alc_pulse_init | ( | BackendFuncs * | func_list | ) |

OpenAL cross platform audio library Copyright (C) 2009 by Konstantinos Natsakis konst.nosp@m.anti.nosp@m.nos.n.nosp@m.atsa.nosp@m.kis@g.nosp@m.mail.nosp@m..com Copyright (C) 2010 by Chris Robinson chris.nosp@m..kca.nosp@m.t@gma.nosp@m.il.c.nosp@m.om 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 1545 of file pulseaudio.c.

References ALC_FALSE.

void alc_pulse_probe | ( | enum DevProbe | type | ) |

Definition at line 1551 of file pulseaudio.c.

void alc_sndio_deinit | ( | void |  | ) |

Definition at line 282 of file sndio.c.

ALCboolean alc_sndio_init | ( | BackendFuncs * | func_list | ) |

Definition at line 274 of file sndio.c.

References ALC_FALSE, ALC_TRUE, sndio_funcs, and sndio_load().

void alc_sndio_probe | ( | enum DevProbe | type | ) |

Definition at line 286 of file sndio.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), CAPTURE_DEVICE_PROBE, and sndio_device.

void alc_solaris_deinit | ( | void |  | ) |

Definition at line 266 of file solaris.c.

ALCboolean alc_solaris_init | ( | BackendFuncs * | func_list | ) |

Definition at line 258 of file solaris.c.

References ALC_TRUE, ConfigValueStr(), solaris_driver, and solaris_funcs.

void alc_solaris_probe | ( | enum DevProbe | type | ) |

Definition at line 270 of file solaris.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), CAPTURE_DEVICE_PROBE, solaris_device, and solaris_driver.

void alc_wave_deinit | ( | void |  | ) |

Definition at line 353 of file wave.c.

ALCboolean alc_wave_init | ( | BackendFuncs * | func_list | ) |

Definition at line 347 of file wave.c.

References ALC_TRUE, and wave_funcs.

void alc_wave_probe | ( | enum DevProbe | type | ) |

Definition at line 357 of file wave.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), CAPTURE_DEVICE_PROBE, ConfigValueExists(), and waveDevice.

void ALCcontext_DecRef | ( | ALCcontext * | context | ) |

Definition at line 1949 of file ALc.c.

References FreeContext(), ALCcontext_struct::ref, and TRACEREF.

Referenced by alAuxiliaryEffectSlotf(), alAuxiliaryEffectSlotfv(), alAuxiliaryEffectSloti(), alAuxiliaryEffectSlotiv(), alBuffer3f(), alBuffer3i(), alBufferData(), alBufferf(), alBufferfv(), alBufferi(), alBufferiv(), alBufferSamplesSOFT(), alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), alcGetContextsDevice(), alcMakeContextCurrent(), alcSetThreadContext(), alDeferUpdatesSOFT(), alDeleteAuxiliaryEffectSlots(), alDeleteBuffers(), alDeleteEffects(), alDeleteFilters(), alDeleteSources(), alDisable(), alDistanceModel(), alDopplerFactor(), alDopplerVelocity(), alEffectf(), alEffectfv(), alEffecti(), alEffectiv(), alEnable(), alFilterf(), alFilterfv(), alFilteri(), alFilteriv(), alGenAuxiliaryEffectSlots(), alGenBuffers(), alGenEffects(), alGenFilters(), alGenSources(), alGetAuxiliaryEffectSlotf(), alGetAuxiliaryEffectSlotfv(), alGetAuxiliaryEffectSloti(), alGetAuxiliaryEffectSlotiv(), alGetBoolean(), alGetBooleanv(), alGetBuffer3f(), alGetBuffer3i(), alGetBufferf(), alGetBufferfv(), alGetBufferi(), alGetBufferiv(), alGetBufferSamplesSOFT(), alGetDouble(), alGetDoublev(), alGetEffectf(), alGetEffectfv(), alGetEffecti(), alGetEffectiv(), alGetError(), alGetFilterf(), alGetFilterfv(), alGetFilteri(), alGetFilteriv(), alGetFloat(), alGetFloatv(), alGetInteger(), alGetIntegerv(), alGetListener3f(), alGetListener3i(), alGetListenerf(), alGetListenerfv(), alGetListeneri(), alGetListeneriv(), alGetSource3dSOFT(), alGetSource3f(), alGetSource3i(), alGetSource3i64SOFT(), alGetSourcedSOFT(), alGetSourcedvSOFT(), alGetSourcef(), alGetSourcefv(), alGetSourcei(), alGetSourcei64SOFT(), alGetSourcei64vSOFT(), alGetSourceiv(), alGetString(), alIsAuxiliaryEffectSlot(), alIsBuffer(), alIsBufferFormatSupportedSOFT(), alIsEffect(), alIsEnabled(), alIsExtensionPresent(), alIsFilter(), alIsSource(), alListener3f(), alListener3i(), alListenerf(), alListenerfv(), alListeneri(), alListeneriv(), alProcessUpdatesSOFT(), alSource3dSOFT(), alSource3f(), alSource3i(), alSource3i64SOFT(), alSourcedSOFT(), alSourcedvSOFT(), alSourcef(), alSourcefv(), alSourcei(), alSourcei64SOFT(), alSourcei64vSOFT(), alSourceiv(), alSourcePausev(), alSourcePlayv(), alSourceQueueBuffers(), alSourceRewindv(), alSourceStopv(), alSourceUnqueueBuffers(), alSpeedOfSound(), ReleaseContext(), and ReleaseThreadCtx().

void ALCcontext_IncRef | ( | ALCcontext * | context | ) |

Definition at line 1942 of file ALc.c.

References ALCcontext_struct::ref, and TRACEREF.

Referenced by GetContextRef(), and VerifyContext().

ALint64 ALCdevice_GetLatencyDefault | ( | ALCdevice * | device | ) |

Definition at line 1285 of file ALc.c.

void ALCdevice_LockDefault | ( | ALCdevice * | device | ) |

Definition at line 1277 of file ALc.c.

References EnterCriticalSection(), and ALCdevice_struct::Mutex.

void ALCdevice_UnlockDefault | ( | ALCdevice * | device | ) |

Definition at line 1281 of file ALc.c.

References LeaveCriticalSection(), and ALCdevice_struct::Mutex.

void alcDSoundDeinit | ( | void |  | ) |

Definition at line 969 of file dsound.c.

References CaptureDeviceList, ds_handle, free, i, NULL, NumCaptureDevices, NumPlaybackDevices, and PlaybackDeviceList.

ALCboolean alcDSoundInit | ( | BackendFuncs * | func_list | ) |

Definition at line 961 of file dsound.c.

References ALC_FALSE, ALC_TRUE, DSoundFuncs, and DSoundLoad().

void alcDSoundProbe | ( | enum DevProbe | type | ) |

Definition at line 990 of file dsound.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), AppendCaptureDeviceList(), CAPTURE_DEVICE_PROBE, CaptureDeviceList, DirectSoundCaptureEnumerateA, DirectSoundEnumerateA, DSoundEnumCaptureDevices(), DSoundEnumPlaybackDevices(), ERR, free, HRESULT(), i, NULL, NumCaptureDevices, NumPlaybackDevices, and PlaybackDeviceList.

void alcMMDevApiDeinit | ( | void |  | ) |

Definition at line 978 of file mmdevapi.c.

References CaptureDeviceList, free, i, NULL, NumCaptureDevices, NumPlaybackDevices, PlaybackDeviceList, ThreadHdl, ThreadID, and TRACE.

ALCboolean alcMMDevApiInit | ( | BackendFuncs * | func_list | ) |

Definition at line 970 of file mmdevapi.c.

References ALC_FALSE, ALC_TRUE, MMDevApiFuncs, and MMDevApiLoad().

void alcMMDevApiProbe | ( | enum DevProbe | type | ) |

Definition at line 1009 of file mmdevapi.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), CAPTURE_DEVICE_PROBE, ERR, FALSE, HRESULT(), i, NULL, NumPlaybackDevices, PlaybackDeviceList, ThreadID, WaitForResponse(), and WM_USER_Enumerate.

void alcWinMMDeinit | ( | void |  | ) |

Definition at line 730 of file winmm.c.

References CaptureDeviceList, free, i, NULL, NumCaptureDevices, NumPlaybackDevices, and PlaybackDeviceList.

ALCboolean alcWinMMInit | ( | BackendFuncs * | FuncList | ) |

Definition at line 724 of file winmm.c.

References ALC_TRUE, and WinMMFuncs.

void alcWinMMProbe | ( | enum DevProbe | type | ) |

Definition at line 750 of file winmm.c.

References ALL_DEVICE_PROBE, AppendAllDevicesList(), AppendCaptureDeviceList(), CAPTURE_DEVICE_PROBE, CaptureDeviceList, i, NumCaptureDevices, NumPlaybackDevices, PlaybackDeviceList, ProbeCaptureDevices(), and ProbePlaybackDevices().

void AppendAllDevicesList | ( | const ALCchar * | name | ) |

Referenced by alc_alsa_probe(), alc_ca_probe(), alc_null_probe(), alc_opensl_probe(), alc_oss_probe(), alc_pa_probe(), alc_sndio_probe(), alc_solaris_probe(), alc_wave_probe(), alcDSoundProbe(), alcMMDevApiProbe(), and alcWinMMProbe().

void AppendCaptureDeviceList | ( | const ALCchar * | name | ) |

Referenced by alc_alsa_probe(), alc_ca_probe(), alc_oss_probe(), alc_pa_probe(), alcDSoundProbe(), and alcWinMMProbe().

ALuint BytesFromDevFmt | ( | enum DevFmtType | type | ) |

Definition at line 1165 of file ALc.c.

References DevFmtByte, DevFmtFloat, DevFmtInt, DevFmtShort, DevFmtUByte, DevFmtUInt, and DevFmtUShort.

Referenced by alcIsRenderFormatSupportedSOFT(), DSoundOpenCapture(), DSoundResetPlayback(), FrameSizeFromDevFmt(), opensl_reset_playback(), oss_open_capture(), oss_reset_playback(), solaris_reset_playback(), UpdateDeviceParams(), wave_reset_playback(), WaveProc(), and WinMMOpenCapture().

ALfloat CalcHrtfDelta | ( | ALfloat | oldGain,
|  | ALfloat | newGain,
|  | const ALfloat | olddir[3],
|  | const ALfloat | newdir[3]
| ) |  |

Definition at line 106 of file hrtf.c.

References F_PI, maxf(), and minf().

Referenced by CalcSourceParams().

ALuint ChannelsFromDevFmt | ( | enum DevFmtChannels | chans | ) |

Definition at line 1179 of file ALc.c.

References DevFmtMono, DevFmtQuad, DevFmtStereo, DevFmtX51, DevFmtX51Side, DevFmtX61, and DevFmtX71.

Referenced by alcIsRenderFormatSupportedSOFT(), alsa_open_capture(), alsa_reset_playback(), DSoundOpenCapture(), DSoundResetPlayback(), FrameSizeFromDevFmt(), opensl_reset_playback(), oss_open_capture(), oss_reset_playback(), pa_open_capture(), solaris_reset_playback(), UpdateDeviceParams(), wave_reset_playback(), and WinMMOpenCapture().

int ConfigValueExists | ( | const char * | blockName,
|  | const char * | keyName
| ) |  |

Definition at line 310 of file alcConfig.c.

References GetConfigValue().

Referenced by alc_wave_probe().

int ConfigValueFloat | ( | const char * | blockName,
|  | const char * | keyName,
|  | float * | ret
| ) |  |

Definition at line 343 of file alcConfig.c.

References GetConfigValue(), and NULL.

Referenced by alc_initconfig().

int ConfigValueInt | ( | const char * | blockName,
|  | const char * | keyName,
|  | int * | ret
| ) |  |

Definition at line 325 of file alcConfig.c.

References GetConfigValue(), and NULL.

Referenced by alc_initconfig(), alcOpenDevice(), pa_open_capture(), and pa_open_playback().

int ConfigValueStr | ( | const char * | blockName,
|  | const char * | keyName,
|  | const char ** | ret
| ) |  |

Definition at line 316 of file alcConfig.c.

References GetConfigValue().

Referenced by alc_initconfig(), alc_oss_init(), alc_solaris_init(), alcOpenDevice(), LoadHrtf(), probe_devices(), and SetSpeakerArrangement().

int ConfigValueUInt | ( | const char * | blockName,
|  | const char * | keyName,
|  | unsigned int * | ret
| ) |  |

Definition at line 334 of file alcConfig.c.

References GetConfigValue(), and NULL.

Referenced by alcLoopbackOpenDeviceSOFT(), alcOpenDevice(), and UpdateDeviceParams().

RingBuffer* CreateRingBuffer | ( | ALsizei | frame_size,
|  | ALsizei | length
| ) |  |

Definition at line 41 of file alcRing.c.

References calloc, and InitializeCriticalSection().

Referenced by alsa_open_capture(), ca_open_capture(), DSoundOpenCapture(), oss_open_capture(), pa_open_capture(), and WinMMOpenCapture().

void DeleteCriticalSection | ( | CRITICAL_SECTION * | cs | ) |

Definition at line 353 of file helpers.c.

References assert, and ret.

Referenced by alc_deinit_safe(), alcCaptureOpenDevice(), alcOpenDevice(), DestroyRingBuffer(), and FreeDevice().

void DestroyRingBuffer | ( | RingBuffer * | ring | ) |

Definition at line 58 of file alcRing.c.

References DeleteCriticalSection(), and free.

Referenced by alsa_close_capture(), alsa_open_capture(), ca_close_capture(), ca_open_capture(), DSoundCloseCapture(), DSoundOpenCapture(), oss_close_capture(), pa_open_capture(), WinMMCloseCapture(), and WinMMOpenCapture().

const ALCchar* DevFmtChannelsString | ( | enum DevFmtChannels | chans | ) |

Definition at line 1150 of file ALc.c.

References DevFmtMono, DevFmtQuad, DevFmtStereo, DevFmtX51, DevFmtX51Side, DevFmtX61, and DevFmtX71.

Referenced by ca_open_capture(), GetHrtf(), LoadHrtf(), oss_open_capture(), oss_reset_playback(), and UpdateDeviceParams().

const ALCchar* DevFmtTypeString | ( | enum DevFmtType | type | ) |

Definition at line 1136 of file ALc.c.

References DevFmtByte, DevFmtFloat, DevFmtInt, DevFmtShort, DevFmtUByte, DevFmtUInt, and DevFmtUShort.

Referenced by ca_open_capture(), DSoundOpenCapture(), oss_open_capture(), oss_reset_playback(), pa_open_capture(), solaris_reset_playback(), and UpdateDeviceParams().

void EnterCriticalSection | ( | CRITICAL_SECTION * | cs | ) |

Definition at line 359 of file helpers.c.

References assert, and ret.

Referenced by ALCdevice_LockDefault(), LockLists(), ReadRingBuffer(), RingBufferSize(), and WriteRingBuffer().

static __inline ALint fastf2i | ( | ALfloat | f | ) |

static

Definition at line 363 of file alMain.h.

References i.

Referenced by aluF2I(), CalcNonAttnSourceParams(), CalcSourceParams(), fastf2u(), and GetMovingHrtfCoeffs().

static __inline ALuint fastf2u | ( | ALfloat | f | ) |

static

Definition at line 379 of file alMain.h.

References fastf2i().

Referenced by CalcAzIndices(), CalcEvIndices(), CalcLineLength(), EAXModulation(), EchoDeviceUpdate(), EchoUpdate(), GetLerpedHrtfCoeffs(), GetMovingHrtfCoeffs(), ModulatorUpdate(), ReverbDeviceUpdate(), UpdateDecorrelator(), UpdateDelayLine(), UpdateEchoLine(), UpdateLateLines(), and UpdateModulator().

void FillCPUCaps | ( | ALuint | capfilter | ) |

Definition at line 73 of file helpers.c.

References BOOL(), CPU_CAP_NEON, CPU_CAP_SSE, CPUCapFlags, DWORD(), ERR, str, and TRACE.

Referenced by alc_initconfig().

static __inline ALuint FrameSizeFromDevFmt | ( | enum DevFmtChannels | chans,
|  | enum DevFmtType | type
| ) |  |

static

Definition at line 523 of file alMain.h.

References BytesFromDevFmt(), and ChannelsFromDevFmt().

Referenced by alsa_open_capture(), ca_open_capture(), ca_reset_playback(), CaptureThreadProc(), DSoundAvailableSamples(), DSoundPlaybackProc(), opensl_start_playback(), oss_start_playback(), OSSCaptureProc(), OSSProc(), pa_open_capture(), PlaybackThreadProc(), sndio_proc(), sndio_start_playback(), solaris_start_playback(), SolarisProc(), wave_start_playback(), WaveProc(), and WinMMStartPlayback().

void FreeALConfig | ( | void |  | ) |

Definition at line 258 of file alcConfig.c.

References cfgCount, entries, free, i, j, and NULL.

Referenced by alc_deinit_safe().

void FreeHrtfs | ( | void |  | ) |

Definition at line 786 of file hrtf.c.

References free, and NULL.

Referenced by alc_deinit_safe().

const char* GetConfigValue | ( | const char * | blockName,
|  | const char * | keyName,
|  | const char * | def
| ) |  |

Definition at line 278 of file alcConfig.c.

References cfgCount, entries, i, j, and TRACE.

Referenced by alsa_open_capture(), alsa_open_playback(), ConfigValueExists(), ConfigValueFloat(), ConfigValueInt(), ConfigValueStr(), ConfigValueUInt(), GetConfigValueBool(), probe_devices(), and wave_open_playback().

int GetConfigValueBool | ( | const char * | blockName,
|  | const char * | keyName,
|  | int | def
| ) |  |

Definition at line 356 of file alcConfig.c.

References GetConfigValue().

Referenced by alc_initconfig(), alsa_reset_playback(), and UpdateDeviceParams().

ALCcontext* GetContextRef | ( | void |  | ) |

Definition at line 1999 of file ALc.c.

References ALCcontext_IncRef(), context, GlobalContext, LockLists(), and UnlockLists().

Referenced by alAuxiliaryEffectSlotf(), alAuxiliaryEffectSlotfv(), alAuxiliaryEffectSloti(), alAuxiliaryEffectSlotiv(), alBuffer3f(), alBuffer3i(), alBufferData(), alBufferf(), alBufferfv(), alBufferi(), alBufferiv(), alBufferSamplesSOFT(), alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), alDeferUpdatesSOFT(), alDeleteAuxiliaryEffectSlots(), alDeleteBuffers(), alDeleteEffects(), alDeleteFilters(), alDeleteSources(), alDisable(), alDistanceModel(), alDopplerFactor(), alDopplerVelocity(), alEffectf(), alEffectfv(), alEffecti(), alEffectiv(), alEnable(), alFilterf(), alFilterfv(), alFilteri(), alFilteriv(), alGenAuxiliaryEffectSlots(), alGenBuffers(), alGenEffects(), alGenFilters(), alGenSources(), alGetAuxiliaryEffectSlotf(), alGetAuxiliaryEffectSlotfv(), alGetAuxiliaryEffectSloti(), alGetAuxiliaryEffectSlotiv(), alGetBoolean(), alGetBooleanv(), alGetBuffer3f(), alGetBuffer3i(), alGetBufferf(), alGetBufferfv(), alGetBufferi(), alGetBufferiv(), alGetBufferSamplesSOFT(), alGetDouble(), alGetDoublev(), alGetEffectf(), alGetEffectfv(), alGetEffecti(), alGetEffectiv(), alGetError(), alGetFilterf(), alGetFilterfv(), alGetFilteri(), alGetFilteriv(), alGetFloat(), alGetFloatv(), alGetInteger(), alGetIntegerv(), alGetListener3f(), alGetListener3i(), alGetListenerf(), alGetListenerfv(), alGetListeneri(), alGetListeneriv(), alGetSource3dSOFT(), alGetSource3f(), alGetSource3i(), alGetSource3i64SOFT(), alGetSourcedSOFT(), alGetSourcedvSOFT(), alGetSourcef(), alGetSourcefv(), alGetSourcei(), alGetSourcei64SOFT(), alGetSourcei64vSOFT(), alGetSourceiv(), alGetString(), alIsAuxiliaryEffectSlot(), alIsBuffer(), alIsBufferFormatSupportedSOFT(), alIsEffect(), alIsEnabled(), alIsExtensionPresent(), alIsFilter(), alIsSource(), alListener3f(), alListener3i(), alListenerf(), alListenerfv(), alListeneri(), alListeneriv(), alProcessUpdatesSOFT(), alSource3dSOFT(), alSource3f(), alSource3i(), alSource3i64SOFT(), alSourcedSOFT(), alSourcedvSOFT(), alSourcef(), alSourcefv(), alSourcei(), alSourcei64SOFT(), alSourcei64vSOFT(), alSourceiv(), alSourcePausev(), alSourcePlayv(), alSourceQueueBuffers(), alSourceRewindv(), alSourceStopv(), alSourceUnqueueBuffers(), and alSpeedOfSound().

struct Hrtf* GetHrtf | ( | ALCdevice * | device | ) |

Definition at line 762 of file hrtf.c.

References DevFmtChannelsString(), DevFmtStereo, ERR, ALCdevice_struct::FmtChans, ALCdevice_struct::Frequency, LoadedHrtfs, LoadHrtf(), and NULL.

Referenced by UpdateDeviceParams().

ALuint GetHrtfIrSize | ( | const struct Hrtf * | Hrtf | ) |

Definition at line 801 of file hrtf.c.

Referenced by CalcNonAttnSourceParams(), and CalcSourceParams().

void GetLerpedHrtfCoeffs | ( | const struct Hrtf * | Hrtf,
|  | ALfloat | elevation,
|  | ALfloat | azimuth,
|  | ALfloat | gain,
|  | ALfloat(*) | coeffs[2],
|  | ALuint * | delays
| ) |  |

Definition at line 140 of file hrtf.c.

References CalcAzIndices(), CalcEvIndices(), fastf2u(), HRTFDELAY_BITS, and i.

Referenced by CalcNonAttnSourceParams(), and CalcSourceParams().

ALuint GetMovingHrtfCoeffs | ( | const struct Hrtf * | Hrtf,
|  | ALfloat | elevation,
|  | ALfloat | azimuth,
|  | ALfloat | gain,
|  | ALfloat | delta,
|  | ALint | counter,
|  | ALfloat(*) | coeffs[2],
|  | ALuint * | delays,
|  | ALfloat(*) | coeffStep[2],
|  | ALint * | delayStep
| ) |  |

Definition at line 232 of file hrtf.c.

References CalcAzIndices(), CalcEvIndices(), fastf2i(), fastf2u(), HRIR_LENGTH, HRTFDELAY_BITS, i, and maxf().

Referenced by CalcSourceParams().

void InitializeCriticalSection | ( | CRITICAL_SECTION * | cs | ) |

Definition at line 334 of file helpers.c.

References assert, and ret.

Referenced by alc_init(), alcCaptureOpenDevice(), alcLoopbackOpenDeviceSOFT(), alcOpenDevice(), and CreateRingBuffer().

void InitUIntMap | ( | UIntMap * | map,
|  | ALsizei | limit
| ) |  |

Definition at line 546 of file helpers.c.

References UIntMap::array, UIntMap::limit, UIntMap::lock, UIntMap::maxsize, NULL, RWLockInit(), and UIntMap::size.

Referenced by alcCaptureOpenDevice(), alcLoopbackOpenDeviceSOFT(), alcOpenDevice(), and InitContext().

ALenum InsertUIntMapEntry | ( | UIntMap * | map,
|  | ALuint | key,
|  | ALvoid * | value
| ) |  |

Definition at line 565 of file helpers.c.

References AL_NO_ERROR, AL_OUT_OF_MEMORY, UIntMap::array, UIntMap::key, UIntMap::limit, UIntMap::lock, low, UIntMap::maxsize, memmove, NULL, realloc, UIntMap::size, UIntMap::value, WriteLock(), and WriteUnlock().

Referenced by alGenAuxiliaryEffectSlots(), alGenBuffers(), alGenEffects(), alGenFilters(), and alGenSources().

void LeaveCriticalSection | ( | CRITICAL_SECTION * | cs | ) |

Definition at line 365 of file helpers.c.

References assert, and ret.

Referenced by ALCdevice_UnlockDefault(), ReadRingBuffer(), RingBufferSize(), UnlockLists(), and WriteRingBuffer().

static __inline void LockContext | ( | ALCcontext * | context | ) |

static

Definition at line 728 of file alMain.h.

References ALCdevice_Lock, and ALCcontext_struct::Device.

Referenced by AddEffectSlotArray(), alDeferUpdatesSOFT(), alDeleteSources(), alGetListener3f(), alGetListener3i(), alGetListenerfv(), alGetListeneriv(), alListener3f(), alListenerfv(), alProcessUpdatesSOFT(), alSourcePausev(), alSourcePlayv(), alSourceQueueBuffers(), alSourceRewindv(), alSourceStopv(), alSourceUnqueueBuffers(), eaxreverb_GetParamfv(), eaxreverb_SetParamfv(), GetSourcedv(), GetSourcei64v(), GetSourceiv(), RemoveEffectSlotArray(), SetSourcefv(), and SetSourceiv().

static __inline void LockUIntMapRead | ( | UIntMap * | map | ) |

static

Definition at line 325 of file alMain.h.

References UIntMap::lock, and ReadLock().

Referenced by alProcessUpdatesSOFT(), and UpdateDeviceParams().

static __inline void LockUIntMapWrite | ( | UIntMap * | map | ) |

static

Definition at line 329 of file alMain.h.

References UIntMap::lock, and WriteLock().

ALvoid* LookupUIntMapKey | ( | UIntMap * | map,
|  | ALuint | key
| ) |  |

Definition at line 653 of file helpers.c.

References UIntMap::array, UIntMap::key, UIntMap::lock, low, NULL, ReadLock(), ReadUnlock(), UIntMap::size, and UIntMap::value.

static __inline ALuint NextPowerOf2 | ( | ALuint | value | ) |

static

Definition at line 347 of file alMain.h.

void ReadALConfig | ( | void |  | ) |

Definition at line 208 of file alcConfig.c.

References calloc, cfgCount, FALSE, LoadConfigFromFile(), NULL, str, and strdup().

Referenced by alc_initconfig().

void ReadLock | ( | RWLock * | lock | ) |

Definition at line 515 of file helpers.c.

References Lock(), RWLock::read_count, RWLock::read_entry_lock, RWLock::read_lock, Unlock(), and RWLock::write_lock.

Referenced by alGetBufferf(), alGetBufferi(), alGetBufferiv(), alGetBufferSamplesSOFT(), alSourceQueueBuffers(), FreeThunkEntry(), LockUIntMapRead(), LookupUIntMapKey(), NewThunkEntry(), and SetSourceiv().

void ReadRingBuffer | ( | RingBuffer * | ring,
|  | ALubyte * | data,
|  | ALsizei | len
| ) |  |

Definition at line 108 of file alcRing.c.

References EnterCriticalSection(), LeaveCriticalSection(), and memcpy.

Referenced by alsa_capture_samples(), ca_capture_conversion_callback(), DSoundCaptureSamples(), oss_capture_samples(), pa_capture_samples(), and WinMMCaptureSamples().

void ReadUnlock | ( | RWLock * | lock | ) |

Definition at line 525 of file helpers.c.

References RWLock::read_count, Unlock(), and RWLock::write_lock.

Referenced by alGetBufferf(), alGetBufferi(), alGetBufferiv(), alGetBufferSamplesSOFT(), alSourceQueueBuffers(), FreeThunkEntry(), LookupUIntMapKey(), NewThunkEntry(), SetSourceiv(), and UnlockUIntMapRead().

ALvoid* RemoveUIntMapKey | ( | UIntMap * | map,
|  | ALuint | key
| ) |  |

Definition at line 624 of file helpers.c.

References UIntMap::array, UIntMap::key, UIntMap::lock, low, memmove, NULL, UIntMap::size, UIntMap::value, WriteLock(), and WriteUnlock().

void ResetUIntMap | ( | UIntMap * | map | ) |

Definition at line 555 of file helpers.c.

References UIntMap::array, free, UIntMap::lock, UIntMap::maxsize, NULL, UIntMap::size, WriteLock(), and WriteUnlock().

Referenced by FreeContext(), and FreeDevice().

void RestoreFPUMode | ( | const FPUCtl * | ctl | ) |

Definition at line 235 of file helpers.c.

References CPU_CAP_SSE, CPUCapFlags, NULL, and FPUCtl::state.

Referenced by alDeferUpdatesSOFT(), aluMixData(), InitializeEffect(), and UpdateDeviceParams().

ALsizei RingBufferSize | ( | RingBuffer * | ring | ) |

Definition at line 67 of file alcRing.c.

References EnterCriticalSection(), and LeaveCriticalSection().

Referenced by alsa_available_samples(), ca_available_samples(), DSoundAvailableSamples(), oss_available_samples(), pa_available_samples(), and WinMMAvailableSamples().

void RWLockInit | ( | RWLock * | lock | ) |

Definition at line 506 of file helpers.c.

References AL_FALSE, RWLock::read_count, RWLock::read_entry_lock, RWLock::read_lock, RWLock::write_count, and RWLock::write_lock.

Referenced by alGenBuffers(), InitUIntMap(), and ThunkInit().

void SetDefaultChannelOrder | ( | ALCdevice * | device | ) |

Definition at line 1352 of file ALc.c.

References BackLeft, BackRight, ALCdevice_struct::ChannelOffsets, DevFmtMono, DevFmtQuad, DevFmtStereo, DevFmtX51, DevFmtX51Side, DevFmtX61, DevFmtX71, ALCdevice_struct::FmtChans, FrontCenter, FrontLeft, FrontRight, i, INVALID_OFFSET, LFE, MaxChannels, SetDefaultWFXChannelOrder(), SideLeft, and SideRight.

Referenced by alsa_reset_playback(), oss_reset_playback(), pa_reset_playback(), sndio_reset_playback(), and solaris_reset_playback().

void SetDefaultWFXChannelOrder | ( | ALCdevice * | device | ) |

Definition at line 1295 of file ALc.c.

References BackCenter, BackLeft, BackRight, ALCdevice_struct::ChannelOffsets, DevFmtMono, DevFmtQuad, DevFmtStereo, DevFmtX51, DevFmtX51Side, DevFmtX61, DevFmtX71, ALCdevice_struct::FmtChans, FrontCenter, FrontLeft, FrontRight, i, INVALID_OFFSET, LFE, MaxChannels, SideLeft, and SideRight.

Referenced by ca_reset_playback(), DoReset(), DSoundOpenCapture(), DSoundResetPlayback(), loopback_reset_playback(), null_reset_playback(), opensl_reset_playback(), SetDefaultChannelOrder(), wave_reset_playback(), and WinMMResetPlayback().

void SetMixerFPUMode | ( | FPUCtl * | ctl | ) |

Definition at line 193 of file helpers.c.

References CPU_CAP_SSE, CPUCapFlags, NULL, and FPUCtl::state.

Referenced by alDeferUpdatesSOFT(), aluMixData(), InitializeEffect(), and UpdateDeviceParams().

void SetRTPriority | ( | void |  | ) |

Definition at line 470 of file helpers.c.

References AL_FALSE, ERR, and RTPrioLevel.

Referenced by ALSANoMMapProc(), ALSAProc(), DSoundPlaybackProc(), MMDevApiProc(), OSSCaptureProc(), OSSProc(), PlaybackThreadProc(), sndio_proc(), and SolarisProc().

void Sleep | ( | ALuint | t | ) |

Definition at line 406 of file helpers.c.

ALvoid* StartThread | ( | ALuint(*)(ALvoid *) | func,
|  | ALvoid * | ptr
| ) |  |

Definition at line 100 of file alcThread.c.

References free, malloc, NULL, StarterFunc(), and THREAD_STACK_SIZE.

Referenced by alsa_start_playback(), DSoundStartPlayback(), MMDevApiMsgProc(), null_start_playback(), oss_open_capture(), oss_start_playback(), sndio_start_playback(), solaris_start_playback(), and wave_start_playback().

ALuint StopThread | ( | ALvoid * | thread | ) |

Definition at line 131 of file alcThread.c.

References free, NULL, ret, and thread.

Referenced by alsa_stop_playback(), DSoundStopPlayback(), MMDevApiMsgProc(), null_stop_playback(), oss_close_capture(), oss_stop_playback(), sndio_stop_playback(), solaris_stop_playback(), and wave_stop_playback().

ALuint timeGetTime | ( | void |  | ) |

Definition at line 376 of file helpers.c.

References assert, NULL, and ret.

Referenced by NullProc(), and WaveProc().

static __inline void UnlockContext | ( | ALCcontext * | context | ) |

static

Definition at line 730 of file alMain.h.

References ALCdevice_Unlock, and ALCcontext_struct::Device.

Referenced by AddEffectSlotArray(), alDeferUpdatesSOFT(), alDeleteSources(), alGetListener3f(), alGetListener3i(), alGetListenerfv(), alGetListeneriv(), alListener3f(), alListenerfv(), alProcessUpdatesSOFT(), alSourcePausev(), alSourcePlayv(), alSourceQueueBuffers(), alSourceRewindv(), alSourceStopv(), alSourceUnqueueBuffers(), eaxreverb_GetParamfv(), eaxreverb_SetParamfv(), GetSourcedv(), GetSourcei64v(), GetSourceiv(), RemoveEffectSlotArray(), SetSourcefv(), and SetSourceiv().

static __inline void UnlockUIntMapRead | ( | UIntMap * | map | ) |

static

Definition at line 327 of file alMain.h.

References UIntMap::lock, and ReadUnlock().

Referenced by alProcessUpdatesSOFT(), and UpdateDeviceParams().

static __inline void UnlockUIntMapWrite | ( | UIntMap * | map | ) |

static

Definition at line 331 of file alMain.h.

References UIntMap::lock, and WriteUnlock().

void WriteLock | ( | RWLock * | lock | ) |

Definition at line 531 of file helpers.c.

References Lock(), RWLock::read_lock, RWLock::write_count, and RWLock::write_lock.

Referenced by alBufferiv(), alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), InsertUIntMapEntry(), LoadData(), LockUIntMapWrite(), NewThunkEntry(), RemoveUIntMapKey(), and ResetUIntMap().

void WriteRingBuffer | ( | RingBuffer * | ring,
|  | const ALubyte * | data,
|  | ALsizei | len
| ) |  |

Definition at line 78 of file alcRing.c.

References EnterCriticalSection(), LeaveCriticalSection(), and memcpy.

Referenced by alsa_available_samples(), ca_capture_callback(), CaptureThreadProc(), DSoundAvailableSamples(), OSSCaptureProc(), and pa_capture_cb().

void WriteUnlock | ( | RWLock * | lock | ) |

Definition at line 538 of file helpers.c.

References RWLock::read_lock, Unlock(), RWLock::write_count, and RWLock::write_lock.

Referenced by alBufferiv(), alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), InsertUIntMapEntry(), LoadData(), NewThunkEntry(), RemoveUIntMapKey(), ResetUIntMap(), and UnlockUIntMapWrite().

## Variable Documentation

ALubyte b[sizeof(ALuint)]

Definition at line 59 of file alMain.h.

ALuint CPUCapFlags

OpenAL cross platform audio library Copyright (C) 2011 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 70 of file helpers.c.

Referenced by alcOpenDevice(), FillCPUCaps(), RestoreFPUMode(), SelectDirectMixer(), SelectHrtfMixer(), SelectSendMixer(), SetMixerFPUMode(), and UpdateDeviceParams().

struct EffectList EffectList[]

union { ... } EndianTest

FILE* LogFile

Definition at line 632 of file ALc.c.

Referenced by al_print().

enum LogLevel LogLevel

Definition at line 636 of file ALc.c.

ALint RTPrioLevel

Definition at line 630 of file ALc.c.

Referenced by SetRTPriority().

UIntMap TlsDestructor

ALuint u

Definition at line 58 of file alMain.h.

Referenced by __ieee754_pow(), _bdf_list_shift(), Zeni::Selector::add_option(), af_glyph_hints_align_strong_points(), af_iup_interp(), af_latin_hints_compute_segments(), afm_parse_kern_pairs(), Zeni::align_similar_normals(), aluF2UI(), Conv_ALdouble_ALuint(), Conv_ALfloat_ALuint(), Conv_ALint_ALuint(), Conv_ALuint_ALdouble(), Conv_ALuint_ALfloat(), Conv_ALuint_ALint(), Zeni::Video_GL_Fixed::end_render(), Zeni::Video_GL_Shader::end_render(), Zeni::Text_Box::erase_lines(), Zeni::Text_Box::get_max_cursor_seek(), Zeni::Timer::get_ticks_per_second(), Zeni::grab_bytes(), huft_build(), Zeni::Image::Image(), lib3ds_track_eval_bool(), lib3ds_track_eval_quat(), Zeni::Collision::nearest_point(), Zeni::Text_Box::on_accept(), Zeni::Text_Box::on_key(), Zeni::Popup_Menu_State::on_pop(), Zeni::Popup_Menu_State::on_push(), Zeni::String::Hash::operator()(), png_warning_parameter_signed(), psh_glyph_interpolate_normal_points(), Zeni::Split_UDP_Socket::receive(), Zeni::render(), Zeni::Font_FT::render_text(), Zeni::Game::run(), SDLTest_Md5Transform(), Zeni::Text_Box::seek(), Zeni::Text_Box::seek_cursor(), Zeni::UDP_Socket::send(), Zeni::Split_UDP_Socket::send(), Zeni::serialize(), Zeni::Video_DX9::set_viewport(), Zeni::Collision::Parallelepiped::shortest_distance(), track_eval_linear(), Zeni::unserialize(), Zeni::Vertex_Buffer_Renderer_DX9::Vertex_Buffer_Renderer_DX9(), Zeni::Matrix4f::View(), and Zeni::Console_State::write_to_log().