zenilib
0.5.3.0
|
#include "config.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <ctype.h>
#include <signal.h>
#include "alMain.h"
#include "alSource.h"
#include "alListener.h"
#include "alThunk.h"
#include "alBuffer.h"
#include "alAuxEffectSlot.h"
#include "alError.h"
#include "bs2b.h"
#include "alu.h"
Go to the source code of this file.
Macros | |
#define | DECL(x) { #x, (ALCvoid*)(x) } |
#define | DECL(x) { #x, (x) } |
#define | DECL_APPEND_LIST_FUNC(type) |
#define | DEVICE_FORMAT_REQUEST (DEVICE_CHANNELS_REQUEST|DEVICE_SAMPLE_TYPE_REQUEST) |
#define | DO_INITCONFIG() pthread_once(&alc_config_once, alc_initconfig) |
#define | EmptyFuncs { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } |
Typedefs | |
typedef struct ALCenums | ALCenums |
typedef struct ALCfunction | ALCfunction |
#define DECL_APPEND_LIST_FUNC | ( | type | ) |
#define DEVICE_FORMAT_REQUEST (DEVICE_CHANNELS_REQUEST|DEVICE_SAMPLE_TYPE_REQUEST) |
Referenced by alcOpenDevice().
#define DO_INITCONFIG | ( | ) | pthread_once(&alc_config_once, alc_initconfig) |
Definition at line 1014 of file ALc.c.
Referenced by alcCaptureOpenDevice(), alcLoopbackOpenDeviceSOFT(), alcOpenDevice(), and ProbeList().
#define EmptyFuncs { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } |
OpenAL cross platform audio library Copyright (C) 1999-2007 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
typedef struct ALCenums ALCenums |
typedef struct ALCfunction ALCfunction |
Definition at line 1020 of file ALc.c.
References ERR, free, ALCdevice_struct::next, and NULL.
Referenced by alc_deinit(), and alc_deinit_safe().
Definition at line 1060 of file ALc.c.
References alc_cleanup(), alc_deinit_safe(), CaptureBackend, BackendInfo::Deinit, i, memset, and PlaybackBackend.
Definition at line 1044 of file ALc.c.
References alc_cleanup(), DeleteCriticalSection(), FreeALConfig(), FreeHrtfs(), NULL, and ThunkExit().
Referenced by alc_deinit().
Definition at line 763 of file ALc.c.
References ConeScale, InitializeCriticalSection(), NULL, ReleaseThreadCtx(), str, ThunkInit(), and ZScale.
Definition at line 782 of file ALc.c.
References AL_FALSE, AL_TRUE, ALC_TRUE, CaptureBackend, ConfigValueFloat(), ConfigValueInt(), ConfigValueStr(), CPU_CAP_NEON, CPU_CAP_SSE, CubicResampler, DefaultResampler, BackendInfo::Deinit, DisabledEffects, EmulateEAXReverb, ERR, FillCPUCaps(), BackendInfo::Funcs, GetConfigValueBool(), i, BackendInfo::Init, InitEffect(), LinearResampler, LoadReverbPreset(), LogRef, BackendInfo::name, EffectList::name, NoLog, NULL, PlaybackBackend, PointResampler, BackendInfo::Probe, ReadALConfig(), ReverbBoost, str, TRACE, TrapALError, and WARN.
ALC_API ALCboolean ALC_APIENTRY alcCaptureCloseDevice | ( | ALCdevice * | Device | ) |
Definition at line 2995 of file ALc.c.
References ALC_FALSE, ALC_INVALID_DEVICE, ALC_TRUE, ALCdevice_DecRef(), alcSetError(), Capture, DeviceList, LockLists(), ALCdevice_struct::next, ALCdevice_struct::Type, and UnlockLists().
ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice | ( | const ALCchar * | devicename, |
ALCuint | frequency, | ||
ALCenum | format, | ||
ALCsizei | buffersize | ||
) |
Capture function.
Definition at line 2922 of file ALc.c.
References al_calloc(), AL_FALSE, al_free(), ALC_INVALID_ENUM, ALC_INVALID_VALUE, ALC_NO_ERROR, ALC_OUT_OF_MEMORY, ALC_TRUE, ALCdevice_OpenCapture, alcSetError(), ALCdevice_struct::BufferMap, Capture, CaptureBackend, ALCdevice_struct::Connected, DecomposeDevFormat(), DeleteCriticalSection(), DEVICE_CHANNELS_REQUEST, DEVICE_FREQUENCY_REQUEST, DEVICE_SAMPLE_TYPE_REQUEST, DeviceList, ALCdevice_struct::DeviceName, DO_INITCONFIG, ALCdevice_struct::EffectMap, ALCdevice_struct::FilterMap, ALCdevice_struct::Flags, ALCdevice_struct::FmtChans, ALCdevice_struct::FmtType, ALCdevice_struct::Frequency, BackendInfo::Funcs, ALCdevice_struct::Funcs, InitializeCriticalSection(), InitUIntMap(), ALCdevice_struct::Mutex, BackendInfo::name, ALCdevice_struct::next, NULL, ALCdevice_struct::NumUpdates, ALCdevice_struct::ref, TRACE, ALCdevice_struct::Type, and ALCdevice_struct::UpdateSize.
ALC_API void ALC_APIENTRY alcCaptureSamples | ( | ALCdevice * | device, |
ALCvoid * | buffer, | ||
ALCsizei | samples | ||
) |
Definition at line 3054 of file ALc.c.
References ALC_INVALID_DEVICE, ALC_INVALID_VALUE, ALC_NO_ERROR, ALCdevice_AvailableSamples, ALCdevice_CaptureSamples, ALCdevice_DecRef(), ALCdevice_Lock, ALCdevice_Unlock, alcSetError(), Capture, ALCdevice_struct::Type, and VerifyDevice().
ALC_API void ALC_APIENTRY alcCaptureStart | ( | ALCdevice * | device | ) |
Definition at line 3019 of file ALc.c.
References ALC_INVALID_DEVICE, ALCdevice_DecRef(), ALCdevice_Lock, ALCdevice_StartCapture, ALCdevice_Unlock, alcSetError(), Capture, ALCdevice_struct::Connected, DEVICE_RUNNING, ALCdevice_struct::Flags, ALCdevice_struct::Type, and VerifyDevice().
ALC_API void ALC_APIENTRY alcCaptureStop | ( | ALCdevice * | device | ) |
Definition at line 3038 of file ALc.c.
References ALC_INVALID_DEVICE, ALCdevice_DecRef(), ALCdevice_Lock, ALCdevice_StopCapture, ALCdevice_Unlock, alcSetError(), Capture, DEVICE_RUNNING, ALCdevice_struct::Flags, ALCdevice_struct::Type, and VerifyDevice().
ALC_API ALCboolean ALC_APIENTRY alcCloseDevice | ( | ALCdevice * | Device | ) |
Definition at line 2884 of file ALc.c.
References ALC_FALSE, ALC_INVALID_DEVICE, ALC_TRUE, ALCdevice_DecRef(), ALCdevice_StopPlayback, alcSetError(), Capture, ALCdevice_struct::ContextList, DEVICE_RUNNING, DeviceList, ALCdevice_struct::Flags, LockLists(), ALCdevice_struct::next, NULL, ReleaseContext(), ALCdevice_struct::Type, UnlockLists(), and WARN.
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().
ALC_API ALCcontext* ALC_APIENTRY alcCreateContext | ( | ALCdevice * | device, |
const ALCint * | attrlist | ||
) |
Context management.
Definition at line 2463 of file ALc.c.
References ALCcontext_struct::ActiveSources, ALC_INVALID_DEVICE, ALC_NO_ERROR, ALC_OUT_OF_MEMORY, ALCdevice_DecRef(), ALCdevice_IncRef(), ALCdevice_Lock, ALCdevice_StopPlayback, ALCdevice_Unlock, alcSetError(), aluHandleDisconnect(), calloc, Capture, ALCdevice_struct::Connected, ALCdevice_struct::ContextList, ALCcontext_struct::Device, DEVICE_RUNNING, ALCdevice_struct::Flags, free, InitContext(), ALCdevice_struct::LastError, ALCcontext_struct::Listener, LockLists(), malloc, ALCcontext_struct::MaxActiveSources, ALCcontext_struct::next, NULL, ALCcontext_struct::ref, TRACE, ALCdevice_struct::Type, UnlockLists(), UpdateDeviceParams(), and VerifyDevice().
ALC_API ALCvoid ALC_APIENTRY alcDestroyContext | ( | ALCcontext * | context | ) |
Definition at line 2539 of file ALc.c.
References ALCdevice_StopPlayback, alcGetContextsDevice(), ALCdevice_struct::ContextList, DEVICE_RUNNING, ALCdevice_struct::Flags, LockLists(), ReleaseContext(), and UnlockLists().
Definition at line 1788 of file ALc.c.
References FreeDevice(), ALCdevice_struct::ref, and TRACEREF.
Referenced by alcCaptureCloseDevice(), alcCaptureSamples(), alcCaptureStart(), alcCaptureStop(), alcCloseDevice(), alcCreateContext(), alcGetEnumValue(), alcGetError(), alcGetIntegerv(), alcGetProcAddress(), alcGetString(), alcIsExtensionPresent(), alcIsRenderFormatSupportedSOFT(), alcRenderSamplesSOFT(), and FreeContext().
Definition at line 1781 of file ALc.c.
References ALCdevice_struct::ref, and TRACEREF.
Referenced by alcCreateContext(), and VerifyDevice().
Definition at line 1277 of file ALc.c.
References EnterCriticalSection(), and ALCdevice_struct::Mutex.
Definition at line 1281 of file ALc.c.
References LeaveCriticalSection(), and ALCdevice_struct::Mutex.
ALC_API ALCdevice* ALC_APIENTRY alcGetContextsDevice | ( | ALCcontext * | Context | ) |
Definition at line 2638 of file ALc.c.
References ALC_INVALID_CONTEXT, ALCcontext_DecRef(), alcSetError(), ALCcontext_struct::Device, NULL, and VerifyContext().
Referenced by alcDestroyContext(), CloseAL(), and main().
ALC_API ALCcontext* ALC_APIENTRY alcGetCurrentContext | ( | void | ) |
Definition at line 2563 of file ALc.c.
References GlobalContext.
Definition at line 2437 of file ALc.c.
References ALC_INVALID_VALUE, ALCdevice_DecRef(), alcSetError(), i, and VerifyDevice().
Referenced by alGetEnumValue().
ALC_API ALCenum ALC_APIENTRY alcGetError | ( | ALCdevice * | device | ) |
Error support.
Obtain the most recent Device error.
Definition at line 2027 of file ALc.c.
References ALC_NO_ERROR, ALCdevice_DecRef(), ALCdevice_struct::LastError, and VerifyDevice().
Referenced by checkALCErrors().
ALC_API ALCvoid ALC_APIENTRY alcGetIntegerv | ( | ALCdevice * | device, |
ALCenum | param, | ||
ALsizei | size, | ||
ALCint * | data | ||
) |
Definition at line 2188 of file ALc.c.
References ALC_ALL_ATTRIBUTES, ALC_ATTRIBUTES_SIZE, ALC_CAPTURE_SAMPLES, ALC_CONNECTED, ALC_EFX_MAJOR_VERSION, ALC_EFX_MINOR_VERSION, ALC_FALSE, ALC_FORMAT_CHANNELS_SOFT, ALC_FORMAT_TYPE_SOFT, ALC_FREQUENCY, ALC_INVALID_DEVICE, ALC_INVALID_ENUM, ALC_INVALID_VALUE, ALC_MAJOR_VERSION, ALC_MAX_AUXILIARY_SENDS, ALC_MINOR_VERSION, ALC_MONO_SOURCES, ALC_REFRESH, ALC_STEREO_SOURCES, ALC_SYNC, ALCdevice_AvailableSamples, ALCdevice_DecRef(), ALCdevice_Lock, ALCdevice_Unlock, alcEFXMajorVersion, alcEFXMinorVersion, alcMajorVersion, alcMinorVersion, alcSetError(), Capture, ALCdevice_struct::Connected, ALCdevice_struct::FmtChans, ALCdevice_struct::FmtType, ALCdevice_struct::Frequency, Loopback, NULL, ALCdevice_struct::NumAuxSends, ALCdevice_struct::NumMonoSources, ALCdevice_struct::NumStereoSources, ALCdevice_struct::Type, ALCdevice_struct::UpdateSize, and VerifyDevice().
Referenced by printALCInfo(), and printEFXInfo().
Definition at line 2411 of file ALc.c.
References ALC_INVALID_VALUE, ALCdevice_DecRef(), alcSetError(), i, NULL, and VerifyDevice().
Referenced by alGetProcAddress().
Query function.
Definition at line 2066 of file ALc.c.
References ALC_ALL_DEVICES_SPECIFIER, ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER, ALC_CAPTURE_DEVICE_SPECIFIER, ALC_DEFAULT_ALL_DEVICES_SPECIFIER, ALC_DEFAULT_DEVICE_SPECIFIER, ALC_DEVICE_SPECIFIER, ALC_EXTENSIONS, ALC_INVALID_CONTEXT, ALC_INVALID_DEVICE, ALC_INVALID_ENUM, ALC_INVALID_VALUE, ALC_NO_ERROR, ALC_OUT_OF_MEMORY, alcAllDevicesList, alcCaptureDefaultDeviceSpecifier, alcCaptureDeviceList, alcDefaultAllDevicesSpecifier, alcDefaultName, ALCdevice_DecRef(), alcErrInvalidContext, alcErrInvalidDevice, alcErrInvalidEnum, alcErrInvalidValue, alcErrOutOfMemory, alcExtensionList, alcNoDeviceExtList, alcNoError, alcSetError(), ALCdevice_struct::DeviceName, free, NULL, ProbeAllDevicesList(), ProbeCaptureDeviceList(), strdup(), and VerifyDevice().
Referenced by checkALCErrors(), InitAL(), main(), and printALCInfo().
ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext | ( | void | ) |
ALC_API ALCboolean ALC_APIENTRY alcIsExtensionPresent | ( | ALCdevice * | device, |
const ALCchar * | extname | ||
) |
Extension support.
Query for the presence of an extension, and obtain any appropriate function pointers and enum values.
Definition at line 2373 of file ALc.c.
References ALC_FALSE, ALC_INVALID_VALUE, ALC_TRUE, ALCdevice_DecRef(), alcNoDeviceExtList, alcSetError(), NULL, and VerifyDevice().
Referenced by main(), printALCInfo(), and printEFXInfo().
ALC_API ALCboolean ALC_APIENTRY alcIsRenderFormatSupportedSOFT | ( | ALCdevice * | device, |
ALCsizei | freq, | ||
ALCenum | channels, | ||
ALCenum | type | ||
) |
Definition at line 3159 of file ALc.c.
References ALC_FALSE, ALC_INVALID_DEVICE, ALC_INVALID_VALUE, ALC_TRUE, ALCdevice_DecRef(), alcSetError(), BytesFromDevFmt(), ChannelsFromDevFmt(), IsValidALCChannels(), IsValidALCType(), Loopback, MIN_OUTPUT_RATE, ret, ALCdevice_struct::Type, and VerifyDevice().
ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT | ( | const ALCchar * | deviceName | ) |
Definition at line 3082 of file ALc.c.
References al_calloc(), ALC_INVALID_VALUE, ALC_NO_ERROR, ALC_OUT_OF_MEMORY, ALC_TRUE, ALCdevice_OpenPlayback, alcSetError(), ALCdevice_struct::AuxiliaryEffectSlotMax, ALCdevice_struct::Bs2b, ALCdevice_struct::Bs2bLevel, ALCdevice_struct::BufferMap, ConfigValueUInt(), ALCdevice_struct::Connected, ALCdevice_struct::ContextList, DEFAULT_OUTPUT_RATE, DevFmtChannelsDefault, DevFmtTypeDefault, DeviceList, ALCdevice_struct::DeviceName, DO_INITCONFIG, ALCdevice_struct::EffectMap, ALCdevice_struct::FilterMap, ALCdevice_struct::Flags, ALCdevice_struct::FmtChans, ALCdevice_struct::FmtType, ALCdevice_struct::Frequency, BackendInfo::Funcs, ALCdevice_struct::Funcs, InitializeCriticalSection(), InitUIntMap(), ALCdevice_struct::LastError, Loopback, MAX_SENDS, ALCdevice_struct::MaxNoOfSources, ALCdevice_struct::Mutex, ALCdevice_struct::next, NULL, ALCdevice_struct::NumAuxSends, ALCdevice_struct::NumMonoSources, ALCdevice_struct::NumStereoSources, ALCdevice_struct::NumUpdates, ALCdevice_struct::ref, TRACE, ALCdevice_struct::Type, and ALCdevice_struct::UpdateSize.
ALC_API ALCboolean ALC_APIENTRY alcMakeContextCurrent | ( | ALCcontext * | context | ) |
Definition at line 2590 of file ALc.c.
References ALC_FALSE, ALC_INVALID_CONTEXT, ALC_TRUE, ALCcontext_DecRef(), alcSetError(), NULL, and VerifyContext().
ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice | ( | const ALCchar * | devicename | ) |
Device management.
Definition at line 2658 of file ALc.c.
References al_calloc(), AL_EFFECT_NULL, al_free(), AL_NO_ERROR, ALC_INVALID_VALUE, ALC_NO_ERROR, ALC_OUT_OF_MEMORY, ALC_TRUE, ALCdevice_OpenPlayback, alcSetError(), ALeffectState_Destroy, ALCdevice_struct::AuxiliaryEffectSlotMax, ALCdevice_struct::Bs2b, ALCdevice_struct::Bs2bLevel, ALCdevice_struct::BufferMap, clampu(), ConfigValueInt(), ConfigValueStr(), ConfigValueUInt(), ALCdevice_struct::Connected, ALCdevice_struct::ContextList, COUNTOF, CPU_CAP_SSE, CPUCapFlags, DEFAULT_OUTPUT_RATE, ALCdevice_struct::DefaultSlot, DeleteCriticalSection(), DevFmtByte, DevFmtChannelsDefault, DevFmtFloat, DevFmtInt, DevFmtMono, DevFmtQuad, DevFmtShort, DevFmtStereo, DevFmtTypeDefault, DevFmtUByte, DevFmtUInt, DevFmtUShort, DevFmtX51, DevFmtX61, DevFmtX71, DEVICE_CHANNELS_REQUEST, DEVICE_FORMAT_REQUEST, DEVICE_FREQUENCY_REQUEST, DEVICE_SAMPLE_TYPE_REQUEST, DeviceList, ALCdevice_struct::DeviceName, DO_INITCONFIG, ALCdevice_struct::EffectMap, ALeffectslot::EffectState, ERR, ALCdevice_struct::FilterMap, ALCdevice_struct::Flags, ALCdevice_struct::FmtChans, ALCdevice_struct::FmtType, formats, ALCdevice_struct::Frequency, BackendInfo::Funcs, ALCdevice_struct::Funcs, i, InitEffectSlot(), InitializeCriticalSection(), InitializeEffect(), InitUIntMap(), ALCdevice_struct::LastError, MAX_SENDS, ALCdevice_struct::MaxNoOfSources, maxu(), MIN_OUTPUT_RATE, ALCdevice_struct::Mutex, BackendInfo::name, ALCdevice_struct::next, NULL, ALCdevice_struct::NumAuxSends, ALCdevice_struct::NumMonoSources, ALCdevice_struct::NumStereoSources, ALCdevice_struct::NumUpdates, Playback, PlaybackBackend, ALCdevice_struct::ref, TRACE, ALeffect::type, ALCdevice_struct::Type, and ALCdevice_struct::UpdateSize.
ALC_API ALCvoid ALC_APIENTRY alcProcessContext | ( | ALCcontext * | Context | ) |
ALC_API void ALC_APIENTRY alcRenderSamplesSOFT | ( | ALCdevice * | device, |
ALCvoid * | buffer, | ||
ALCsizei | samples | ||
) |
Definition at line 3184 of file ALc.c.
References ALC_INVALID_DEVICE, ALC_INVALID_VALUE, ALCdevice_DecRef(), alcSetError(), aluMixData(), Loopback, NULL, ALCdevice_struct::Type, and VerifyDevice().
Definition at line 1394 of file ALc.c.
References ALCdevice_struct::LastError.
Referenced by alcCaptureCloseDevice(), alcCaptureOpenDevice(), alcCaptureSamples(), alcCaptureStart(), alcCaptureStop(), alcCloseDevice(), alcCreateContext(), alcGetContextsDevice(), alcGetEnumValue(), alcGetIntegerv(), alcGetProcAddress(), alcGetString(), alcIsExtensionPresent(), alcIsRenderFormatSupportedSOFT(), alcLoopbackOpenDeviceSOFT(), alcMakeContextCurrent(), alcOpenDevice(), alcRenderSamplesSOFT(), and alcSetThreadContext().
ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext | ( | ALCcontext * | context | ) |
Definition at line 2615 of file ALc.c.
References ALC_FALSE, ALC_INVALID_CONTEXT, ALC_TRUE, ALCcontext_DecRef(), alcSetError(), NULL, and VerifyContext().
ALC_API ALCvoid ALC_APIENTRY alcSuspendContext | ( | ALCcontext * | Context | ) |
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().
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().
|
static |
Definition at line 1194 of file ALc.c.
References AL_FALSE, AL_FORMAT_51CHN16, AL_FORMAT_51CHN32, AL_FORMAT_51CHN8, AL_FORMAT_61CHN16, AL_FORMAT_61CHN32, AL_FORMAT_61CHN8, AL_FORMAT_71CHN16, AL_FORMAT_71CHN32, AL_FORMAT_71CHN8, AL_FORMAT_MONO16, AL_FORMAT_MONO8, AL_FORMAT_MONO_FLOAT32, AL_FORMAT_QUAD16, AL_FORMAT_QUAD32, AL_FORMAT_QUAD8, AL_FORMAT_STEREO16, AL_FORMAT_STEREO8, AL_FORMAT_STEREO_FLOAT32, AL_TRUE, COUNTOF, DevFmtFloat, DevFmtMono, DevFmtQuad, DevFmtShort, DevFmtStereo, DevFmtUByte, DevFmtX51, DevFmtX61, DevFmtX71, and i.
Referenced by alcCaptureOpenDevice().
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().
|
static |
Definition at line 1874 of file ALc.c.
References ALCcontext_struct::ActiveEffectSlotCount, ALCcontext_struct::ActiveEffectSlots, ALCcontext_struct::ActiveSourceCount, ALCcontext_struct::ActiveSources, ALCdevice_DecRef(), ALCcontext_struct::Device, ALCcontext_struct::EffectSlotMap, free, ALCcontext_struct::MaxActiveEffectSlots, ALCcontext_struct::MaxActiveSources, memset, NULL, ReleaseALAuxiliaryEffectSlots(), ReleaseALSources(), ResetUIntMap(), UIntMap::size, ALCcontext_struct::SourceMap, TRACE, and WARN.
Referenced by ALCcontext_DecRef().
Definition at line 1733 of file ALc.c.
References al_free(), ALCdevice_CloseCapture, ALCdevice_ClosePlayback, ALeffectState_Destroy, ALCdevice_struct::Bs2b, ALCdevice_struct::BufferMap, Capture, ALCdevice_struct::DefaultSlot, DeleteCriticalSection(), ALCdevice_struct::DeviceName, ALCdevice_struct::EffectMap, ALeffectslot::EffectState, ALCdevice_struct::FilterMap, free, ALCdevice_struct::Mutex, NULL, ReleaseALBuffers(), ReleaseALEffects(), ReleaseALFilters(), ResetUIntMap(), UIntMap::size, TRACE, ALCdevice_struct::Type, and WARN.
Referenced by ALCdevice_DecRef().
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().
|
static |
Definition at line 1823 of file ALc.c.
References ALCcontext_struct::ActiveSourceCount, AL_FALSE, AL_NO_ERROR, alExtList, ALCdevice_struct::AuxiliaryEffectSlotMax, DefaultDistanceModel, ALCcontext_struct::DeferUpdates, ALCcontext_struct::Device, ALCcontext_struct::DistanceModel, ALCcontext_struct::DopplerFactor, ALCcontext_struct::DopplerVelocity, ALCcontext_struct::EffectSlotMap, ALCcontext_struct::ExtensionList, ALlistener::Forward, ALlistener::Gain, i, InitUIntMap(), j, ALCcontext_struct::LastError, ALCcontext_struct::Listener, ALlistener::Matrix, ALCdevice_struct::MaxNoOfSources, ALlistener::MetersPerUnit, ALlistener::Params, ALlistener::Position, ALCcontext_struct::SourceDistanceModel, ALCcontext_struct::SourceMap, ALCcontext_struct::SpeedOfSound, SPEEDOFSOUNDMETRESPERSEC, ALlistener::Up, ALCcontext_struct::UpdateSources, and ALlistener::Velocity.
|
static |
Definition at line 1257 of file ALc.c.
References ALC_5POINT1_SOFT, ALC_6POINT1_SOFT, ALC_7POINT1_SOFT, ALC_FALSE, ALC_MONO_SOFT, ALC_QUAD_SOFT, ALC_STEREO_SOFT, and ALC_TRUE.
Referenced by alcIsRenderFormatSupportedSOFT(), and UpdateDeviceParams().
|
static |
Definition at line 1241 of file ALc.c.
References ALC_BYTE_SOFT, ALC_FALSE, ALC_FLOAT_SOFT, ALC_INT_SOFT, ALC_SHORT_SOFT, ALC_TRUE, ALC_UNSIGNED_BYTE_SOFT, ALC_UNSIGNED_INT_SOFT, and ALC_UNSIGNED_SHORT_SOFT.
Referenced by alcIsRenderFormatSupportedSOFT(), and UpdateDeviceParams().
Definition at line 673 of file ALc.c.
References EnterCriticalSection().
Referenced by alcCaptureCloseDevice(), alcCloseDevice(), alcCreateContext(), alcDestroyContext(), GetContextRef(), ProbeList(), VerifyContext(), and VerifyDevice().
Definition at line 1096 of file ALc.c.
References ALL_DEVICE_PROBE, and ProbeList().
Referenced by alcGetString().
Definition at line 1098 of file ALc.c.
References CAPTURE_DEVICE_PROBE, and ProbeList().
Referenced by alcGetString().
Definition at line 1080 of file ALc.c.
References ALL_DEVICE_PROBE, CAPTURE_DEVICE_PROBE, CaptureBackend, DO_INITCONFIG, free, LockLists(), NULL, PlaybackBackend, BackendInfo::Probe, and UnlockLists().
Referenced by ProbeAllDevicesList(), and ProbeCaptureDeviceList().
|
static |
Definition at line 1915 of file ALc.c.
References ALCcontext_DecRef(), ALCdevice_Lock, ALCdevice_Unlock, ALCdevice_struct::ContextList, ALCcontext_struct::next, NULL, and WARN.
Referenced by alcCloseDevice(), and alcDestroyContext().
Definition at line 1957 of file ALc.c.
References ALCcontext_DecRef(), and WARN.
Referenced by alc_init().
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().
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().
Definition at line 677 of file ALc.c.
References LeaveCriticalSection().
Referenced by alcCaptureCloseDevice(), alcCloseDevice(), alcCreateContext(), alcDestroyContext(), GetContextRef(), ProbeList(), VerifyContext(), and VerifyDevice().
Definition at line 1419 of file ALc.c.
References AL_FALSE, ALC_FALSE, ALC_FORMAT_CHANNELS_SOFT, ALC_FORMAT_TYPE_SOFT, ALC_FREQUENCY, ALC_INVALID_DEVICE, ALC_INVALID_VALUE, ALC_MAX_AUXILIARY_SENDS, ALC_NO_ERROR, ALC_STEREO_SOURCES, ALCdevice_Lock, ALCdevice_ResetPlayback, ALCdevice_StartPlayback, ALCdevice_StopPlayback, ALCdevice_Unlock, ALeffectState_DeviceUpdate, ALeffectState_Update, ALsource_Update, aluInitPanning(), UIntMap::array, ALCdevice_struct::Bs2b, bs2b_clear(), bs2b_set_level(), bs2b_set_srate(), ALCdevice_struct::Bs2bLevel, BytesFromDevFmt(), calloc, ChannelsFromDevFmt(), ConfigValueUInt(), context, ALCdevice_struct::ContextList, CPU_CAP_SSE, CPUCapFlags, ALCdevice_struct::DefaultSlot, DevFmtChannelsString(), DevFmtTypeString(), DEVICE_CHANNELS_REQUEST, DEVICE_FREQUENCY_REQUEST, DEVICE_RUNNING, DEVICE_SAMPLE_TYPE_REQUEST, DEVICE_WIDE_STEREO, ALCcontext_struct::EffectSlotMap, ALeffectslot::EffectState, ERR, ALCdevice_struct::Flags, ALCdevice_struct::FmtChans, ALCdevice_struct::FmtType, free, ALCdevice_struct::Frequency, ALsource::Gain, ALsource::GainHF, GetConfigValueBool(), GetHrtf(), ALCdevice_struct::Hrtf, i, IsValidALCChannels(), IsValidALCType(), LockUIntMapRead(), Loopback, MAX_SENDS, MaxChannels, ALCdevice_struct::MaxNoOfSources, maxu(), MIN_OUTPUT_RATE, minu(), ALeffectslot::NeedsUpdate, ALsource::NeedsUpdate, ALCcontext_struct::next, NULL, ALCdevice_struct::NumAuxSends, ALCdevice_struct::NumMonoSources, ALCdevice_struct::NumStereoSources, ALCdevice_struct::NumUpdates, ALeffectslot::ref, RestoreFPUMode(), ALsource::Send, SetMixerFPUMode(), UIntMap::size, ALsource::Slot, ALCcontext_struct::SourceMap, TRACE, ALCdevice_struct::Type, UnlockUIntMapRead(), ALCdevice_struct::UpdateSize, ALCcontext_struct::UpdateSources, UIntMap::value, and WARN.
Referenced by alcCreateContext().
|
static |
Definition at line 1967 of file ALc.c.
References ALCcontext_IncRef(), ALCdevice_struct::ContextList, DeviceList, LockLists(), ALCdevice_struct::next, ALCcontext_struct::next, NULL, and UnlockLists().
Referenced by alcGetContextsDevice(), alcMakeContextCurrent(), and alcSetThreadContext().
Definition at line 1800 of file ALc.c.
References ALCdevice_IncRef(), DeviceList, LockLists(), ALCdevice_struct::next, NULL, and UnlockLists().
Referenced by alcCaptureSamples(), alcCaptureStart(), alcCaptureStop(), alcCreateContext(), alcGetEnumValue(), alcGetError(), alcGetIntegerv(), alcGetProcAddress(), alcGetString(), alcIsExtensionPresent(), alcIsRenderFormatSupportedSOFT(), and alcRenderSamplesSOFT().
|
static |
Definition at line 603 of file ALc.c.
Referenced by alcGetString().
|
static |
Definition at line 611 of file ALc.c.
Referenced by alcGetString().
|
static |
Definition at line 604 of file ALc.c.
Referenced by alcGetString().
|
static |
Definition at line 610 of file ALc.c.
Referenced by alcGetString().
Definition at line 602 of file ALc.c.
Referenced by alcGetString().
Definition at line 662 of file ALc.c.
Referenced by alcGetIntegerv().
Definition at line 663 of file ALc.c.
Referenced by alcGetIntegerv().
Definition at line 591 of file ALc.c.
Referenced by alcGetString().
Definition at line 590 of file ALc.c.
Referenced by alcGetString().
Definition at line 592 of file ALc.c.
Referenced by alcGetString().
Definition at line 593 of file ALc.c.
Referenced by alcGetString().
Definition at line 594 of file ALc.c.
Referenced by alcGetString().
Definition at line 655 of file ALc.c.
Referenced by alcGetString().
|
static |
Definition at line 659 of file ALc.c.
Referenced by alcGetIntegerv().
Definition at line 660 of file ALc.c.
Referenced by alcGetIntegerv().
Definition at line 652 of file ALc.c.
Referenced by alcGetString(), and alcIsExtensionPresent().
Definition at line 589 of file ALc.c.
Referenced by alcGetString().
Definition at line 614 of file ALc.c.
Referenced by InitContext().
|
static |
|
static |
|
static |
Definition at line 94 of file ALc.c.
Referenced by alc_deinit(), alc_initconfig(), alcCaptureOpenDevice(), and ProbeList().
Definition at line 669 of file ALc.c.
Referenced by alcCaptureCloseDevice(), alcCaptureOpenDevice(), alcCloseDevice(), alcLoopbackOpenDeviceSOFT(), alcOpenDevice(), VerifyContext(), and VerifyDevice().
|
static |
Definition at line 627 of file ALc.c.
Referenced by alcGetCurrentContext(), and GetContextRef().
|
static |
|
static |
FILE* LogFile |
Definition at line 632 of file ALc.c.
Referenced by al_print().
|
static |
Definition at line 93 of file ALc.c.
Referenced by alc_deinit(), alc_initconfig(), alcOpenDevice(), and ProbeList().
ALint RTPrioLevel |
Definition at line 630 of file ALc.c.
Referenced by SetRTPriority().
|
static |