zenilib
0.5.3.0
|
Go to the source code of this file.
Macros | |
#define | ALC_ALL_ATTRIBUTES 0x1003 |
#define | ALC_API extern |
#define | ALC_APIENTRY |
#define | ALC_ATTRIBUTES_SIZE 0x1002 |
#define | ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER 0x311 |
#define | ALC_CAPTURE_DEVICE_SPECIFIER 0x310 |
#define | ALC_CAPTURE_SAMPLES 0x312 |
#define | ALC_DEFAULT_DEVICE_SPECIFIER 0x1004 |
#define | ALC_DEVICE_SPECIFIER 0x1005 |
#define | ALC_EXTENSIONS 0x1006 |
#define | ALC_FALSE 0 |
#define | ALC_FREQUENCY 0x1007 |
#define | ALC_INVALID 0 |
#define | ALC_INVALID_CONTEXT 0xA002 |
#define | ALC_INVALID_DEVICE 0xA001 |
#define | ALC_INVALID_ENUM 0xA003 |
#define | ALC_INVALID_VALUE 0xA004 |
#define | ALC_MAJOR_VERSION 0x1000 |
#define | ALC_MINOR_VERSION 0x1001 |
#define | ALC_MONO_SOURCES 0x1010 |
#define | ALC_NO_ERROR ALC_FALSE |
#define | ALC_OUT_OF_MEMORY 0xA005 |
#define | ALC_REFRESH 0x1008 |
#define | ALC_STEREO_SOURCES 0x1011 |
#define | ALC_SYNC 0x1009 |
#define | ALC_TRUE 1 |
#define | ALC_VERSION_0_1 1 |
#define | ALCAPI ALC_API |
#define | ALCAPIENTRY ALC_APIENTRY |
#define ALC_DEFAULT_DEVICE_SPECIFIER 0x1004 |
#define ALC_MONO_SOURCES 0x1010 |
#define ALC_STEREO_SOURCES 0x1011 |
#define ALCAPIENTRY ALC_APIENTRY |
typedef char ALCboolean |
typedef signed char ALCbyte |
typedef struct ALCcontext_struct ALCcontext |
typedef struct ALCdevice_struct ALCdevice |
typedef ALCboolean(ALC_APIENTRY * LPALCCAPTURECLOSEDEVICE)(ALCdevice *device) |
typedef void(ALC_APIENTRY * LPALCCAPTURESTART)(ALCdevice *device) |
typedef void(ALC_APIENTRY * LPALCCAPTURESTOP)(ALCdevice *device) |
typedef ALCboolean(ALC_APIENTRY * LPALCCLOSEDEVICE)(ALCdevice *device) |
typedef ALCcontext* ALC_APIENTRY* LPALCCREATECONTEXT(ALCdevice *device, const ALCint *attrlist) |
typedef void(ALC_APIENTRY * LPALCDESTROYCONTEXT)(ALCcontext *context) |
typedef ALCdevice*(ALC_APIENTRY * LPALCGETCONTEXTSDEVICE)(ALCcontext *context) |
typedef ALCcontext*(ALC_APIENTRY * LPALCGETCURRENTCONTEXT)(void) |
typedef ALCenum(ALC_APIENTRY * LPALCGETENUMVALUE)(ALCdevice *device, const ALCchar *enumname) |
typedef ALCenum(ALC_APIENTRY * LPALCGETERROR)(ALCdevice *device) |
typedef void*(ALC_APIENTRY * LPALCGETPROCADDRESS)(ALCdevice *device, const ALCchar *funcname) |
typedef ALCboolean(ALC_APIENTRY * LPALCISEXTENSIONPRESENT)(ALCdevice *device, const ALCchar *extname) |
typedef ALCboolean(ALC_APIENTRY * LPALCMAKECONTEXTCURRENT)(ALCcontext *context) |
typedef ALCdevice*(ALC_APIENTRY * LPALCOPENDEVICE)(const ALCchar *devicename) |
typedef void(ALC_APIENTRY * LPALCPROCESSCONTEXT)(ALCcontext *context) |
typedef void(ALC_APIENTRY * LPALCSUSPENDCONTEXT)(ALCcontext *context) |
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.
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 void 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().
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 void ALC_APIENTRY alcGetIntegerv | ( | ALCdevice * | device, |
ALCenum | param, | ||
ALCsizei | 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 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 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 void ALC_APIENTRY alcProcessContext | ( | ALCcontext * | context | ) |
ALC_API void ALC_APIENTRY alcSuspendContext | ( | ALCcontext * | context | ) |