zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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_APIENTRYLPALDEFERUPDATESSOFT )(void)
 
typedef ALvoid(AL_APIENTRYLPALPROCESSUPDATESSOFT )(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

voidal_calloc (size_t alignment, size_t size)
 
void al_free (void *ptr)
 
voidal_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)
 
RingBufferCreateRingBuffer (ALsizei frame_size, ALsizei length)
 
void DeleteCriticalSection (CRITICAL_SECTION *cs)
 
void DestroyRingBuffer (RingBuffer *ring)
 
const ALCcharDevFmtChannelsString (enum DevFmtChannels chans)
 
const ALCcharDevFmtTypeString (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)
 
ALCcontextGetContextRef (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)
 
ALvoidLookupUIntMapKey (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)
 
ALvoidRemoveUIntMapKey (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)
 
ALvoidStartThread (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
#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)
return Display return Display Bool Bool int int e
Definition: SDL_x11sym.h:30
#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)
#define al_throw(e)
Definition: alMain.h:860
ALvoid alSetError(ALCcontext *Context, ALenum errorCode)
Definition: alError.c:31
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(!yyg->yy_init)
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_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 COUNTOF (   x)    (sizeof((x))/sizeof((x)[0]))
#define DEFAULT_OUTPUT_RATE   (44100)

Definition at line 342 of file alMain.h.

Referenced by alcLoopbackOpenDeviceSOFT(), and alcOpenDevice().

#define DEVICE_CHANNELS_REQUEST   (1<<2)
#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)
#define DEVICE_SAMPLE_TYPE_REQUEST   (1<<3)
#define DEVICE_WIDE_STEREO   (1<<16)

Definition at line 658 of file alMain.h.

Referenced by CalcNonAttnSourceParams(), and UpdateDeviceParams().

#define ERR (   ...)
Value:
do { \
AL_PRINT("(EE)", __VA_ARGS__); \
} while(0)
if(!yyg->yy_init)
LogLevel
Definition: alMain.h:792
#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)
#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 LookupEffect (   m,
  k 
)    ((struct ALeffect*)LookupUIntMapKey(&(m)->EffectMap, (k)))
#define LookupFilter (   m,
  k 
)    ((struct ALfilter*)LookupUIntMapKey(&(m)->FilterMap, (k)))
#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 TRACEREF (   ...)
Value:
do { \
AL_PRINT("(--)", __VA_ARGS__); \
} while(0)
if(!yyg->yy_init)
LogLevel
Definition: alMain.h:792
Definition: alMain.h:797
#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 (   ...)

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.

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.

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 
)
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_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)
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)
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)
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)
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)
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)
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  )
ALCboolean alcDSoundInit ( BackendFuncs func_list)

Definition at line 961 of file dsound.c.

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

void alcMMDevApiDeinit ( void  )
ALCboolean alcMMDevApiInit ( BackendFuncs func_list)

Definition at line 970 of file mmdevapi.c.

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

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.

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().

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 
)
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 
)
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 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().

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().

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 
)
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)
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 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 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 
)
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().

ALvoid* RemoveUIntMapKey ( UIntMap map,
ALuint  key 
)
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)
void SetMixerFPUMode ( FPUCtl ctl)
void Sleep ( ALuint  t)

Definition at line 406 of file helpers.c.

ALuint timeGetTime ( void  )

Definition at line 376 of file helpers.c.

References assert, NULL, and ret.

Referenced by NullProc(), and WaveProc().

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().

Variable Documentation

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().

union { ... } EndianTest
FILE* LogFile

Definition at line 632 of file ALc.c.

Referenced by al_print().

Definition at line 636 of file ALc.c.

ALint RTPrioLevel

Definition at line 630 of file ALc.c.

Referenced by SetRTPriority().

UIntMap TlsDestructor