zenilib
0.5.3.0
|
Go to the source code of this file.
Macros | |
#define | AL_API extern |
#define | AL_APIENTRY |
#define | AL_BITS 0x2002 |
#define | AL_BUFFER 0x1009 |
#define | AL_BUFFERS_PROCESSED 0x1016 |
#define | AL_BUFFERS_QUEUED 0x1015 |
#define | AL_BYTE_OFFSET 0x1026 |
#define | AL_CHANNELS 0x2003 |
#define | AL_CONE_INNER_ANGLE 0x1001 |
#define | AL_CONE_OUTER_ANGLE 0x1002 |
#define | AL_CONE_OUTER_GAIN 0x1022 |
#define | AL_DIRECTION 0x1005 |
#define | AL_DISTANCE_MODEL 0xD000 |
#define | AL_DOPPLER_FACTOR 0xC000 |
#define | AL_DOPPLER_VELOCITY 0xC001 |
#define | AL_EXPONENT_DISTANCE 0xD005 |
#define | AL_EXPONENT_DISTANCE_CLAMPED 0xD006 |
#define | AL_EXTENSIONS 0xB004 |
#define | AL_FALSE 0 |
#define | AL_FORMAT_MONO16 0x1101 |
#define | AL_FORMAT_MONO8 0x1100 |
#define | AL_FORMAT_STEREO16 0x1103 |
#define | AL_FORMAT_STEREO8 0x1102 |
#define | AL_FREQUENCY 0x2001 |
#define | AL_GAIN 0x100A |
#define | AL_ILLEGAL_COMMAND AL_INVALID_OPERATION |
#define | AL_ILLEGAL_ENUM AL_INVALID_ENUM |
#define | AL_INITIAL 0x1011 |
#define | AL_INVALID (-1) |
#define | AL_INVALID_ENUM 0xA002 |
#define | AL_INVALID_NAME 0xA001 |
#define | AL_INVALID_OPERATION 0xA004 |
#define | AL_INVALID_VALUE 0xA003 |
#define | AL_INVERSE_DISTANCE 0xD001 |
#define | AL_INVERSE_DISTANCE_CLAMPED 0xD002 |
#define | AL_LINEAR_DISTANCE 0xD003 |
#define | AL_LINEAR_DISTANCE_CLAMPED 0xD004 |
#define | AL_LOOPING 0x1007 |
#define | AL_MAX_DISTANCE 0x1023 |
#define | AL_MAX_GAIN 0x100E |
#define | AL_MIN_GAIN 0x100D |
#define | AL_NO_ERROR AL_FALSE |
#define | AL_NONE 0 |
#define | AL_ORIENTATION 0x100F |
#define | AL_OUT_OF_MEMORY 0xA005 |
#define | AL_PAUSED 0x1013 |
#define | AL_PENDING 0x2011 |
#define | AL_PITCH 0x1003 |
#define | AL_PLAYING 0x1012 |
#define | AL_POSITION 0x1004 |
#define | AL_PROCESSED 0x2012 |
#define | AL_REFERENCE_DISTANCE 0x1020 |
#define | AL_RENDERER 0xB003 |
#define | AL_ROLLOFF_FACTOR 0x1021 |
#define | AL_SAMPLE_OFFSET 0x1025 |
#define | AL_SEC_OFFSET 0x1024 |
#define | AL_SIZE 0x2004 |
#define | AL_SOURCE_RELATIVE 0x202 |
#define | AL_SOURCE_STATE 0x1010 |
#define | AL_SOURCE_TYPE 0x1027 |
#define | AL_SPEED_OF_SOUND 0xC003 |
#define | AL_STATIC 0x1028 |
#define | AL_STOPPED 0x1014 |
#define | AL_STREAMING 0x1029 |
#define | AL_TRUE 1 |
#define | AL_UNDETERMINED 0x1030 |
#define | AL_UNUSED 0x2010 |
#define | AL_VELOCITY 0x1006 |
#define | AL_VENDOR 0xB001 |
#define | AL_VERSION 0xB002 |
#define | AL_VERSION_1_0 |
#define | AL_VERSION_1_1 |
#define | ALAPI AL_API |
#define | ALAPIENTRY AL_APIENTRY |
#define | OPENAL |
#define AL_BUFFER 0x1009 |
#define AL_CONE_INNER_ANGLE 0x1001 |
#define AL_CONE_OUTER_ANGLE 0x1002 |
#define AL_CONE_OUTER_GAIN 0x1022 |
#define AL_DISTANCE_MODEL 0xD000 |
#define AL_DOPPLER_FACTOR 0xC000 |
#define AL_DOPPLER_VELOCITY 0xC001 |
#define AL_FORMAT_MONO8 0x1100 |
#define AL_FREQUENCY 0x2001 |
#define AL_GAIN 0x100A |
Indicate the gain (volume amplification) applied. Type: ALfloat. Range: ]0.0- ] A value of 1.0 means un-attenuated/unchanged. Each division by 2 equals an attenuation of -6dB. Each multiplicaton with 2 equals an amplification of +6dB. A value of 0.0 is meaningless with respect to a logarithmic scale; it is interpreted as zero volume - the channel is effectively disabled.
#define AL_ILLEGAL_COMMAND AL_INVALID_OPERATION |
#define AL_ILLEGAL_ENUM AL_INVALID_ENUM |
#define AL_INVALID_ENUM 0xA002 |
#define AL_INVALID_NAME 0xA001 |
#define AL_LOOPING 0x1007 |
#define AL_MAX_DISTANCE 0x1023 |
#define AL_MAX_GAIN 0x100E |
#define AL_ORIENTATION 0x100F |
#define AL_PITCH 0x1003 |
#define AL_POSITION 0x1004 |
Specify the current location in three dimensional space. OpenAL, like OpenGL, uses a right handed coordinate system, where in a frontal default view X (thumb) points right, Y points up (index finger), and Z points towards the viewer/camera (middle finger). To switch from a left handed coordinate system, flip the sign on the Z coordinate. Listener position is always in the world coordinate system.
#define AL_REFERENCE_DISTANCE 0x1020 |
#define AL_ROLLOFF_FACTOR 0x1021 |
#define AL_SEC_OFFSET 0x1024 |
#define AL_SOURCE_RELATIVE 0x202 |
#define AL_SPEED_OF_SOUND 0xC003 |
#define AL_UNUSED 0x2010 |
#define AL_VELOCITY 0x1006 |
#define ALAPIENTRY AL_APIENTRY |
typedef void(AL_APIENTRY * LPALDISABLE)(ALenum capability) |
typedef void(AL_APIENTRY * LPALDISTANCEMODEL)(ALenum distanceModel) |
typedef void(AL_APIENTRY * LPALENABLE)(ALenum capability) |
typedef ALenum(AL_APIENTRY * LPALGETENUMVALUE)(const ALchar *ename) |
typedef ALenum(AL_APIENTRY * LPALGETERROR)(void) |
typedef void*(AL_APIENTRY * LPALGETPROCADDRESS)(const ALchar *fname) |
typedef const ALchar*(AL_APIENTRY * LPALGETSTRING)(ALenum param) |
typedef ALboolean(AL_APIENTRY * LPALISBUFFER)(ALuint bid) |
typedef ALboolean(AL_APIENTRY * LPALISENABLED)(ALenum capability) |
typedef ALboolean(AL_APIENTRY * LPALISEXTENSIONPRESENT)(const ALchar *extname) |
typedef void(AL_APIENTRY * LPALSOURCEPAUSEV)(ALsizei ns, const ALuint *sids) |
typedef void(AL_APIENTRY * LPALSOURCEPLAYV)(ALsizei ns, const ALuint *sids) |
typedef void(AL_APIENTRY * LPALSOURCEREWINDV)(ALsizei ns, const ALuint *sids) |
typedef void(AL_APIENTRY * LPALSOURCESTOPV)(ALsizei ns, const ALuint *sids) |
AL_API void AL_APIENTRY alBuffer3f | ( | ALuint | bid, |
ALenum | param, | ||
ALfloat | value1, | ||
ALfloat | value2, | ||
ALfloat | value3 | ||
) |
Definition at line 639 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.
AL_API void AL_APIENTRY alBuffer3i | ( | ALuint | bid, |
ALenum | param, | ||
ALint | value1, | ||
ALint | value2, | ||
ALint | value3 | ||
) |
Definition at line 721 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.
AL_API void AL_APIENTRY alBufferData | ( | ALuint | bid, |
ALenum | format, | ||
const ALvoid * | data, | ||
ALsizei | size, | ||
ALsizei | freq | ||
) |
Specifies the data to be copied into a buffer
Definition at line 289 of file alBuffer.c.
References al_endtry, AL_FALSE, AL_FORMAT_51CHN16, AL_FORMAT_51CHN32, AL_FORMAT_61CHN16, AL_FORMAT_61CHN32, AL_FORMAT_71CHN16, AL_FORMAT_71CHN32, AL_FORMAT_MONO16, AL_FORMAT_MONO_FLOAT32, AL_FORMAT_QUAD16, AL_FORMAT_QUAD32, AL_FORMAT_REAR16, AL_FORMAT_REAR32, AL_FORMAT_STEREO16, AL_FORMAT_STEREO_FLOAT32, AL_INVALID_ENUM, AL_INVALID_NAME, AL_NO_ERROR, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), ChannelsFromUserFmt(), CHECK_VALUE, DecomposeUserFormat(), ALCcontext_struct::Device, FrameSizeFromUserFmt(), GetContextRef(), LoadData(), LookupBuffer, NULL, UserFmtAlaw, UserFmtByte, UserFmtByte3, UserFmtDouble, UserFmtFloat, UserFmtIMA4, UserFmtInt, UserFmtMono, UserFmtMulaw, UserFmtQuad, UserFmtRear, UserFmtShort, UserFmtStereo, UserFmtUByte, UserFmtUByte3, UserFmtUInt, UserFmtUShort, UserFmtX51, UserFmtX61, and UserFmtX71.
Set Buffer parameters,
Definition at line 612 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.
Definition at line 668 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.
Definition at line 694 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.
Definition at line 750 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_OPERATION, AL_INVALID_VALUE, AL_LOOP_POINTS_SOFT, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), ALbuffer::lock, LookupBuffer, ALbuffer::LoopEnd, ALbuffer::LoopStart, NULL, ALbuffer::ref, ALbuffer::SampleLen, WriteLock(), and WriteUnlock().
Delete Buffer objects
Definition at line 229 of file alBuffer.c.
References al_endtry, AL_INVALID_NAME, AL_INVALID_OPERATION, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALbuffer::data, ALCcontext_struct::Device, free, FreeThunkEntry(), GetContextRef(), i, ALbuffer::id, LookupBuffer, memset, NULL, ALbuffer::ref, and RemoveBuffer.
Delete Source objects.
Definition at line 1262 of file alSource.c.
References ALCcontext_struct::ActiveSourceCount, ALCcontext_struct::ActiveSources, al_endtry, al_free(), AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALbufferlistitem::buffer, CHECK_VALUE, free, FreeThunkEntry(), GetContextRef(), i, ALsource::id, j, LockContext(), LookupSource, MAX_SENDS, memset, ALbufferlistitem::next, NULL, ALsource::queue, ALeffectslot::ref, ALbuffer::ref, RemoveSource, ALsource::Send, ALsource::Slot, and UnlockContext().
AL_API void AL_APIENTRY alDisable | ( | ALenum | capability | ) |
Definition at line 69 of file alState.c.
References al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_SOURCE_DISTANCE_MODEL, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), GetContextRef(), ALCcontext_struct::SourceDistanceModel, and ALCcontext_struct::UpdateSources.
AL_API void AL_APIENTRY alDistanceModel | ( | ALenum | distanceModel | ) |
Definition at line 561 of file alState.c.
References al_endtry, AL_EXPONENT_DISTANCE, AL_EXPONENT_DISTANCE_CLAMPED, AL_INVERSE_DISTANCE, AL_INVERSE_DISTANCE_CLAMPED, AL_LINEAR_DISTANCE, AL_LINEAR_DISTANCE_CLAMPED, AL_NONE, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DistanceModel, GetContextRef(), ALCcontext_struct::SourceDistanceModel, and ALCcontext_struct::UpdateSources.
AL_API void AL_APIENTRY alDopplerFactor | ( | ALfloat | value | ) |
Definition at line 504 of file alState.c.
References al_endtry, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DopplerFactor, GetContextRef(), and ALCcontext_struct::UpdateSources.
AL_API void AL_APIENTRY alDopplerVelocity | ( | ALfloat | value | ) |
Definition at line 523 of file alState.c.
References al_endtry, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::UpdateSources.
AL_API void AL_APIENTRY alEnable | ( | ALenum | capability | ) |
Renderer State management.
Definition at line 44 of file alState.c.
References al_endtry, AL_INVALID_ENUM, AL_SOURCE_DISTANCE_MODEL, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), GetContextRef(), ALCcontext_struct::SourceDistanceModel, and ALCcontext_struct::UpdateSources.
AL_API void AL_APIENTRY alGenBuffers | ( | ALsizei | n, |
ALuint * | buffers | ||
) |
BUFFER Buffer objects are storage space for sample data. Buffers are referred to by Sources. One Buffer can be used by multiple Sources.
Properties include: -
Frequency (Query only) AL_FREQUENCY ALint Size (Query only) AL_SIZE ALint Bits (Query only) AL_BITS ALint Channels (Query only) AL_CHANNELS ALint
Create Buffer objects
Definition at line 183 of file alBuffer.c.
References al_catchany, al_endtry, AL_NO_ERROR, AL_OUT_OF_MEMORY, al_throwerr, al_try, ALCcontext_DecRef(), alDeleteBuffers(), ALCdevice_struct::BufferMap, calloc, CHECK_VALUE, ALCcontext_struct::Device, free, FreeThunkEntry(), GetContextRef(), ALbuffer::id, InsertUIntMapEntry(), ALbuffer::lock, memset, NewThunkEntry(), and RWLockInit().
AL_API void AL_APIENTRY alGenSources | ( | ALsizei | n, |
ALuint * | sources | ||
) |
SOURCE Sources represent individual sound objects in 3D-space. Sources take the PCM data provided in the specified Buffer, apply Source-specific modifications, and then submit them to be mixed according to spatial arrangement etc.
Properties include: -
Gain AL_GAIN ALfloat Min Gain AL_MIN_GAIN ALfloat Max Gain AL_MAX_GAIN ALfloat Position AL_POSITION ALfloat[3] Velocity AL_VELOCITY ALfloat[3] Direction AL_DIRECTION ALfloat[3] Head Relative Mode AL_SOURCE_RELATIVE ALint (AL_TRUE or AL_FALSE) Reference Distance AL_REFERENCE_DISTANCE ALfloat Max Distance AL_MAX_DISTANCE ALfloat RollOff Factor AL_ROLLOFF_FACTOR ALfloat Inner Angle AL_CONE_INNER_ANGLE ALint or ALfloat Outer Angle AL_CONE_OUTER_ANGLE ALint or ALfloat Cone Outer Gain AL_CONE_OUTER_GAIN ALint or ALfloat Pitch AL_PITCH ALfloat Looping AL_LOOPING ALint (AL_TRUE or AL_FALSE) MS Offset AL_MSEC_OFFSET ALint or ALfloat Byte Offset AL_BYTE_OFFSET ALint or ALfloat Sample Offset AL_SAMPLE_OFFSET ALint or ALfloat Attached Buffer AL_BUFFER ALint State (Query only) AL_SOURCE_STATE ALint Buffers Queued (Query only) AL_BUFFERS_QUEUED ALint Buffers Processed (Query only) AL_BUFFERS_PROCESSED ALint
Create Source objects.
Definition at line 1216 of file alSource.c.
References al_calloc(), al_catchany, al_endtry, al_free(), AL_NO_ERROR, AL_OUT_OF_MEMORY, al_throwerr, al_try, ALCcontext_DecRef(), alDeleteSources(), CHECK_VALUE, FreeThunkEntry(), GetContextRef(), ALsource::id, InitSourceParams(), InsertUIntMapEntry(), memset, NewThunkEntry(), and ALCcontext_struct::SourceMap.
AL_API ALboolean AL_APIENTRY alGetBoolean | ( | ALenum | param | ) |
Definition at line 121 of file alState.c.
References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_INVERSE_DISTANCE_CLAMPED, AL_SPEED_OF_SOUND, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), ALCcontext_struct::DeferUpdates, ALCcontext_struct::DistanceModel, ALCcontext_struct::DopplerFactor, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::SpeedOfSound.
AL_API void AL_APIENTRY alGetBooleanv | ( | ALenum | param, |
ALboolean * | data | ||
) |
Definition at line 297 of file alState.c.
References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), alGetBoolean(), CHECK_VALUE, and GetContextRef().
AL_API void AL_APIENTRY alGetBuffer3f | ( | ALuint | bid, |
ALenum | param, | ||
ALfloat * | value1, | ||
ALfloat * | value2, | ||
ALfloat * | value3 | ||
) |
Definition at line 832 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.
AL_API void AL_APIENTRY alGetBuffer3i | ( | ALuint | bid, |
ALenum | param, | ||
ALint * | value1, | ||
ALint * | value2, | ||
ALint * | value3 | ||
) |
Definition at line 949 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.
Get Buffer parameters.
Definition at line 796 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, AL_SEC_LENGTH_SOFT, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, ALbuffer::Frequency, GetContextRef(), ALbuffer::lock, LookupBuffer, NULL, ReadLock(), ReadUnlock(), and ALbuffer::SampleLen.
Definition at line 858 of file alBuffer.c.
References al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, AL_SEC_LENGTH_SOFT, al_throwerr, al_try, ALCcontext_DecRef(), alGetBufferf(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), LookupBuffer, and NULL.
Definition at line 891 of file alBuffer.c.
References AL_BITS, AL_BYTE_LENGTH_SOFT, AL_CHANNELS, al_endtry, AL_FREQUENCY, AL_INTERNAL_FORMAT_SOFT, AL_INVALID_ENUM, AL_INVALID_NAME, AL_SAMPLE_LENGTH_SOFT, AL_SIZE, al_throwerr, al_try, ALCcontext_DecRef(), BytesFromFmt(), ChannelsFromFmt(), CHECK_VALUE, ALCcontext_struct::Device, ALbuffer::FmtChannels, ALbuffer::FmtType, ALbuffer::Format, FrameSizeFromFmt(), ALbuffer::Frequency, GetContextRef(), ALbuffer::lock, LookupBuffer, NULL, ALbuffer::OriginalSize, ReadLock(), ReadUnlock(), and ALbuffer::SampleLen.
Definition at line 975 of file alBuffer.c.
References AL_BITS, AL_BYTE_LENGTH_SOFT, AL_CHANNELS, al_endtry, AL_FREQUENCY, AL_INTERNAL_FORMAT_SOFT, AL_INVALID_ENUM, AL_INVALID_NAME, AL_LOOP_POINTS_SOFT, AL_SAMPLE_LENGTH_SOFT, AL_SIZE, al_throwerr, al_try, ALCcontext_DecRef(), alGetBufferi(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), ALbuffer::lock, LookupBuffer, ALbuffer::LoopEnd, ALbuffer::LoopStart, NULL, ReadLock(), and ReadUnlock().
AL_API ALdouble AL_APIENTRY alGetDouble | ( | ALenum | param | ) |
Definition at line 168 of file alState.c.
References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::DeferUpdates, ALCcontext_struct::DistanceModel, ALCcontext_struct::DopplerFactor, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::SpeedOfSound.
AL_API void AL_APIENTRY alGetDoublev | ( | ALenum | param, |
ALdouble * | data | ||
) |
Definition at line 332 of file alState.c.
References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), alGetDouble(), CHECK_VALUE, and GetContextRef().
AL_API ALenum AL_APIENTRY alGetEnumValue | ( | const ALchar * | ename | ) |
Definition at line 95 of file alExtension.c.
References alcGetEnumValue().
AL_API ALenum AL_APIENTRY alGetError | ( | void | ) |
Error retrieval.
Obtain the first error generated in the AL context since the last check.
Definition at line 46 of file alError.c.
References AL_INVALID_OPERATION, AL_NO_ERROR, ALCcontext_DecRef(), GetContextRef(), ALCcontext_struct::LastError, and TrapALError.
AL_API ALfloat AL_APIENTRY alGetFloat | ( | ALenum | param | ) |
Definition at line 211 of file alState.c.
References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::DeferUpdates, ALCcontext_struct::DistanceModel, ALCcontext_struct::DopplerFactor, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::SpeedOfSound.
AL_API void AL_APIENTRY alGetFloatv | ( | ALenum | param, |
ALfloat * | data | ||
) |
Definition at line 367 of file alState.c.
References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), alGetFloat(), CHECK_VALUE, and GetContextRef().
AL_API ALint AL_APIENTRY alGetInteger | ( | ALenum | param | ) |
Definition at line 254 of file alState.c.
References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), ALCcontext_struct::DeferUpdates, ALCcontext_struct::DistanceModel, ALCcontext_struct::DopplerFactor, ALCcontext_struct::DopplerVelocity, GetContextRef(), and ALCcontext_struct::SpeedOfSound.
AL_API void AL_APIENTRY alGetIntegerv | ( | ALenum | param, |
ALint * | data | ||
) |
Definition at line 402 of file alState.c.
References AL_DEFERRED_UPDATES_SOFT, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_DOPPLER_VELOCITY, al_endtry, AL_INVALID_ENUM, AL_SPEED_OF_SOUND, al_throwerr, al_try, ALCcontext_DecRef(), alGetInteger(), CHECK_VALUE, and GetContextRef().
AL_API void AL_APIENTRY alGetListener3f | ( | ALenum | param, |
ALfloat * | value1, | ||
ALfloat * | value2, | ||
ALfloat * | value3 | ||
) |
Definition at line 288 of file alListener.c.
References al_endtry, AL_INVALID_ENUM, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), ALCcontext_struct::Listener, LockContext(), ALlistener::Position, UnlockContext(), and ALlistener::Velocity.
AL_API void AL_APIENTRY alGetListener3i | ( | ALenum | param, |
ALint * | value1, | ||
ALint * | value2, | ||
ALint * | value3 | ||
) |
Definition at line 395 of file alListener.c.
References al_endtry, AL_INVALID_ENUM, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), ALCcontext_struct::Listener, LockContext(), ALlistener::Position, UnlockContext(), and ALlistener::Velocity.
AL_API void AL_APIENTRY alGetListenerf | ( | ALenum | param, |
ALfloat * | value | ||
) |
Get Listener parameters
Definition at line 258 of file alListener.c.
References al_endtry, AL_GAIN, AL_INVALID_ENUM, AL_METERS_PER_UNIT, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALlistener::Gain, GetContextRef(), ALCcontext_struct::Listener, and ALlistener::MetersPerUnit.
AL_API void AL_APIENTRY alGetListenerfv | ( | ALenum | param, |
ALfloat * | values | ||
) |
Definition at line 326 of file alListener.c.
References al_endtry, AL_GAIN, AL_INVALID_ENUM, AL_METERS_PER_UNIT, AL_ORIENTATION, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), alGetListener3f(), alGetListenerf(), CHECK_VALUE, ALlistener::Forward, GetContextRef(), ALCcontext_struct::Listener, LockContext(), UnlockContext(), and ALlistener::Up.
AL_API void AL_APIENTRY alGetListeneri | ( | ALenum | param, |
ALint * | value | ||
) |
Definition at line 373 of file alListener.c.
References al_endtry, AL_INVALID_ENUM, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, and GetContextRef().
AL_API void AL_APIENTRY alGetListeneriv | ( | ALenum | param, |
ALint * | values | ||
) |
Definition at line 433 of file alListener.c.
References al_endtry, AL_INVALID_ENUM, AL_ORIENTATION, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), alGetListener3i(), CHECK_VALUE, ALlistener::Forward, GetContextRef(), ALCcontext_struct::Listener, LockContext(), UnlockContext(), and ALlistener::Up.
AL_API void* AL_APIENTRY alGetProcAddress | ( | const ALchar * | fname | ) |
Definition at line 88 of file alExtension.c.
References alcGetProcAddress(), and NULL.
AL_API void AL_APIENTRY alGetSource3f | ( | ALuint | sid, |
ALenum | param, | ||
ALfloat * | value1, | ||
ALfloat * | value2, | ||
ALfloat * | value3 | ||
) |
Definition at line 1626 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, AL_NO_ERROR, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), GetSourcedv(), LookupSource, and NULL.
AL_API void AL_APIENTRY alGetSource3i | ( | ALuint | sid, |
ALenum | param, | ||
ALint * | value1, | ||
ALint * | value2, | ||
ALint * | value3 | ||
) |
Definition at line 1775 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, AL_NO_ERROR, ALCcontext_DecRef(), alSetError(), GetContextRef(), GetSourceiv(), IntValsByProp(), LookupSource, and NULL.
Get Source parameters.
Definition at line 1601 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, AL_NO_ERROR, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), GetSourcedv(), LookupSource, and NULL.
Definition at line 1655 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, AL_NO_ERROR, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), GetSourcedv(), i, LookupSource, and NULL.
Definition at line 1754 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, ALCcontext_DecRef(), alSetError(), GetContextRef(), GetSourceiv(), IntValsByProp(), LookupSource, and NULL.
Definition at line 1804 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, ALCcontext_DecRef(), alSetError(), GetContextRef(), GetSourceiv(), IntValsByProp(), LookupSource, and NULL.
AL_API const ALchar* AL_APIENTRY alGetString | ( | ALenum | param | ) |
State retrieval.
Definition at line 437 of file alState.c.
References al_catchany, al_endtry, AL_EXTENSIONS, AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_OPERATION, AL_INVALID_VALUE, AL_NO_ERROR, AL_OUT_OF_MEMORY, AL_RENDERER, al_throwerr, al_try, AL_VENDOR, AL_VERSION, ALCcontext_DecRef(), alErrInvalidEnum, alErrInvalidName, alErrInvalidOp, alErrInvalidValue, alErrOutOfMemory, alNoError, alRenderer, alVendor, alVersion, ALCcontext_struct::ExtensionList, GetContextRef(), and NULL.
AL_API ALboolean AL_APIENTRY alIsBuffer | ( | ALuint | bid | ) |
Verify a handle is a valid Buffer
Definition at line 272 of file alBuffer.c.
References AL_FALSE, AL_TRUE, ALCcontext_DecRef(), ALCcontext_struct::Device, GetContextRef(), and LookupBuffer.
AL_API ALboolean AL_APIENTRY alIsEnabled | ( | ALenum | capability | ) |
Definition at line 94 of file alState.c.
References al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_SOURCE_DISTANCE_MODEL, al_throwerr, al_try, ALCcontext_DecRef(), GetContextRef(), and ALCcontext_struct::SourceDistanceModel.
AL_API ALboolean AL_APIENTRY alIsExtensionPresent | ( | const ALchar * | extname | ) |
Extension support.
Query for the presence of an extension, and obtain any appropriate function pointers and enum values.
Definition at line 49 of file alExtension.c.
References al_endtry, AL_FALSE, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::ExtensionList, GetContextRef(), and ret.
AL_API ALboolean AL_APIENTRY alIsSource | ( | ALuint | sid | ) |
Verify a handle is a valid Source.
Definition at line 1334 of file alSource.c.
References AL_FALSE, AL_TRUE, ALCcontext_DecRef(), GetContextRef(), and LookupSource.
AL_API void AL_APIENTRY alListener3f | ( | ALenum | param, |
ALfloat | value1, | ||
ALfloat | value2, | ||
ALfloat | value3 | ||
) |
Definition at line 64 of file alListener.c.
References al_endtry, AL_INVALID_ENUM, AL_POSITION, al_throwerr, AL_TRUE, al_try, AL_VELOCITY, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), ALCcontext_struct::Listener, LockContext(), ALlistener::Position, UnlockContext(), ALCcontext_struct::UpdateSources, and ALlistener::Velocity.
Definition at line 185 of file alListener.c.
References al_endtry, AL_INVALID_ENUM, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), alListener3f(), and GetContextRef().
AL_API void AL_APIENTRY alListenerf | ( | ALenum | param, |
ALfloat | value | ||
) |
OpenAL cross platform audio library Copyright (C) 1999-2000 by authors. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Or go to http://www.gnu.org/copyleft/lgpl.html
Definition at line 29 of file alListener.c.
References al_endtry, AL_GAIN, AL_INVALID_ENUM, AL_METERS_PER_UNIT, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALlistener::Gain, GetContextRef(), ALCcontext_struct::Listener, ALlistener::MetersPerUnit, and ALCcontext_struct::UpdateSources.
Definition at line 107 of file alListener.c.
References al_endtry, AL_GAIN, AL_INVALID_ENUM, AL_METERS_PER_UNIT, AL_ORIENTATION, AL_POSITION, al_throwerr, AL_TRUE, al_try, AL_VELOCITY, ALCcontext_DecRef(), alListener3f(), alListenerf(), CHECK_VALUE, ALlistener::Forward, GetContextRef(), ALCcontext_struct::Listener, LockContext(), UnlockContext(), ALlistener::Up, and ALCcontext_struct::UpdateSources.
AL_API void AL_APIENTRY alListeneri | ( | ALenum | param, |
ALint | value | ||
) |
Definition at line 162 of file alListener.c.
References al_endtry, AL_INVALID_ENUM, al_throwerr, al_try, ALCcontext_DecRef(), and GetContextRef().
Definition at line 214 of file alListener.c.
References al_endtry, AL_INVALID_ENUM, AL_ORIENTATION, AL_POSITION, al_throwerr, al_try, AL_VELOCITY, ALCcontext_DecRef(), alListener3f(), alListenerfv(), CHECK_VALUE, and GetContextRef().
AL_API void AL_APIENTRY alSource3f | ( | ALuint | sid, |
ALenum | param, | ||
ALfloat | value1, | ||
ALfloat | value2, | ||
ALfloat | value3 | ||
) |
Definition at line 1368 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), LookupSource, NULL, and SetSourcefv().
AL_API void AL_APIENTRY alSource3i | ( | ALuint | sid, |
ALenum | param, | ||
ALint | value1, | ||
ALint | value2, | ||
ALint | value3 | ||
) |
Definition at line 1499 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, ALCcontext_DecRef(), alSetError(), GetContextRef(), IntValsByProp(), LookupSource, NULL, and SetSourceiv().
Set Source parameters.
Definition at line 1350 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), LookupSource, NULL, and SetSourcefv().
Definition at line 1389 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, ALCcontext_DecRef(), alSetError(), FloatValsByProp(), GetContextRef(), LookupSource, NULL, and SetSourcefv().
Definition at line 1481 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, ALCcontext_DecRef(), alSetError(), GetContextRef(), IntValsByProp(), LookupSource, NULL, and SetSourceiv().
Definition at line 1520 of file alSource.c.
References AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, ALCcontext_DecRef(), alSetError(), GetContextRef(), IntValsByProp(), LookupSource, NULL, and SetSourceiv().
AL_API void AL_APIENTRY alSourcePause | ( | ALuint | sid | ) |
Pause a list of Sources
Definition at line 1953 of file alSource.c.
References al_endtry, AL_INVALID_NAME, AL_PAUSED, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DeferUpdates, GetContextRef(), i, LockContext(), LookupSource, ALsource::new_state, SetSourceState(), and UnlockContext().
AL_API void AL_APIENTRY alSourcePlay | ( | ALuint | sid | ) |
Play, replay, or resume a Source
Definition at line 1894 of file alSource.c.
References alSourcePlayv().
Play, replay, or resume (if paused) a list of Sources
Definition at line 1898 of file alSource.c.
References ALCcontext_struct::ActiveSourceCount, ALCcontext_struct::ActiveSources, al_endtry, AL_INVALID_NAME, AL_OUT_OF_MEMORY, AL_PLAYING, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::DeferUpdates, GetContextRef(), i, LockContext(), LookupSource, ALCcontext_struct::MaxActiveSources, ALsource::new_state, NULL, realloc, SetSourceState(), and UnlockContext().
AL_API void AL_APIENTRY alSourceQueueBuffers | ( | ALuint | sid, |
ALsizei | numEntries, | ||
const ALuint * | bids | ||
) |
Queue buffers onto a source
Definition at line 2058 of file alSource.c.
References al_catchany, al_endtry, AL_INVALID_NAME, AL_INVALID_OPERATION, AL_STATIC, AL_STREAMING, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), ALbufferlistitem::buffer, ALsource::BuffersInQueue, BytesFromFmt(), CalcNonAttnSourceParams(), CalcSourceParams(), ChannelsFromFmt(), CHECK_VALUE, ALCcontext_struct::Device, ALbuffer::FmtChannels, FmtMono, ALbuffer::FmtType, free, ALbuffer::Frequency, GetContextRef(), i, ALbuffer::lock, LockContext(), LookupBuffer, LookupSource, malloc, ALsource::NeedsUpdate, ALbufferlistitem::next, NULL, ALsource::NumChannels, ALbuffer::OriginalChannels, ALbuffer::OriginalType, ALbufferlistitem::prev, ALsource::queue, ReadLock(), ReadUnlock(), ALbuffer::ref, ALsource::SampleSize, ALsource::SourceType, UnlockContext(), and ALsource::Update.
AL_API void AL_APIENTRY alSourceRewind | ( | ALuint | sid | ) |
Rewind a Source (set playback postiton to beginning)
Definition at line 2021 of file alSource.c.
References alSourceRewindv().
Rewind a list of Sources
Definition at line 2025 of file alSource.c.
References al_endtry, AL_INITIAL, AL_INVALID_NAME, AL_NONE, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), i, LockContext(), LookupSource, ALsource::new_state, SetSourceState(), and UnlockContext().
AL_API void AL_APIENTRY alSourceStop | ( | ALuint | sid | ) |
Stop a list of Sources
Definition at line 1989 of file alSource.c.
References al_endtry, AL_INVALID_NAME, AL_NONE, AL_STOPPED, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), i, LockContext(), LookupSource, ALsource::new_state, SetSourceState(), and UnlockContext().
Unqueue processed buffers from a source
Definition at line 2194 of file alSource.c.
References al_endtry, AL_INVALID_NAME, AL_INVALID_VALUE, AL_STREAMING, al_throwerr, al_try, ALCcontext_DecRef(), ALbufferlistitem::buffer, ALsource::BuffersInQueue, ALsource::BuffersPlayed, CHECK_VALUE, free, GetContextRef(), i, ALbuffer::id, LockContext(), LookupSource, ALsource::Looping, ALbufferlistitem::next, NULL, ALbufferlistitem::prev, ALsource::queue, ALbuffer::ref, ALsource::SourceType, and UnlockContext().
AL_API void AL_APIENTRY alSpeedOfSound | ( | ALfloat | value | ) |
Definition at line 542 of file alState.c.
References al_endtry, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, GetContextRef(), ALCcontext_struct::SpeedOfSound, and ALCcontext_struct::UpdateSources.