zenilib
0.5.3.0
|
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <limits.h>
#include "alMain.h"
#include "alu.h"
#include "alError.h"
#include "alBuffer.h"
#include "alThunk.h"
Go to the source code of this file.
Macros | |
#define | DECL_TEMPLATE(T) |
#define | DECL_TEMPLATE(T) |
#define | DECL_TEMPLATE(T) |
#define | DECL_TEMPLATE(T) |
#define | DECL_TEMPLATE(T1, T2) |
#define | DECL_TEMPLATE(T) |
#define | DECL_TEMPLATE(T) |
#define | DECL_TEMPLATE(T) |
Typedefs | |
typedef ALubyte | ALalaw |
typedef ALubyte | ALima4 |
typedef ALubyte | ALmulaw |
Variables | |
static const int | aLawClip = 32635 |
static const char | aLawCompressTable [128] |
static const ALshort | aLawDecompressionTable [256] |
ALbyte | ALbyte3_size_is_not_3 [(sizeof(ALbyte3)==sizeof(ALbyte[3]))?1:-1] |
ALbyte | ALubyte3_size_is_not_3 [(sizeof(ALubyte3)==sizeof(ALubyte[3]))?1:-1] |
static const int | IMA4Codeword [16] |
static const int | IMA4Index_adjust [16] |
static const int | IMAStep_size [89] |
static const int | muLawBias = 0x84 |
static const int | muLawClip = 32635 |
static const char | muLawCompressTable [256] |
static const ALshort | muLawDecompressionTable [256] |
#define DECL_TEMPLATE | ( | T | ) |
Definition at line 1820 of file alBuffer.c.
#define DECL_TEMPLATE | ( | T | ) |
Definition at line 1820 of file alBuffer.c.
#define DECL_TEMPLATE | ( | T | ) |
Definition at line 1820 of file alBuffer.c.
#define DECL_TEMPLATE | ( | T | ) |
Definition at line 1820 of file alBuffer.c.
#define DECL_TEMPLATE | ( | T1, | |
T2 | |||
) |
Definition at line 1820 of file alBuffer.c.
#define DECL_TEMPLATE | ( | T | ) |
Definition at line 1820 of file alBuffer.c.
#define DECL_TEMPLATE | ( | T | ) |
Definition at line 1820 of file alBuffer.c.
#define DECL_TEMPLATE | ( | T | ) |
Definition at line 1820 of file alBuffer.c.
Definition at line 1023 of file alBuffer.c.
Definition at line 1024 of file alBuffer.c.
Definition at line 1022 of file alBuffer.c.
AL_API void AL_APIENTRY alBuffer3f | ( | ALuint | buffer, |
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 | buffer, |
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 ALvoid AL_APIENTRY alBufferData | ( | ALuint | buffer, |
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.
Referenced by wrap_BufferSamples().
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().
AL_API void AL_APIENTRY alBufferSamplesSOFT | ( | ALuint | buffer, |
ALuint | samplerate, | ||
ALenum | internalformat, | ||
ALsizei | samples, | ||
ALenum | channels, | ||
ALenum | type, | ||
const ALvoid * | data | ||
) |
Definition at line 469 of file alBuffer.c.
References al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_INVALID_NAME, AL_NO_ERROR, al_throwerr, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), IsValidChannels(), IsValidType(), LoadData(), LookupBuffer, and NULL.
AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT | ( | ALuint | buffer, |
ALenum | format, | ||
const ALvoid * | data, | ||
ALsizei | offset, | ||
ALsizei | length | ||
) |
Definition at line 404 of file alBuffer.c.
References al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, al_throwerr, al_try, ALCcontext_DecRef(), BytesFromFmt(), BytesFromUserFmt(), ChannelsFromFmt(), ChannelsFromUserFmt(), CHECK_VALUE, ConvertData(), ALbuffer::data, DecomposeUserFormat(), ALCcontext_struct::Device, ALbuffer::FmtChannels, ALbuffer::FmtType, FrameSizeFromUserFmt(), GetContextRef(), ALbuffer::lock, LookupBuffer, NULL, ALbuffer::OriginalChannels, ALbuffer::OriginalSize, ALbuffer::OriginalType, UserFmtIMA4, WriteLock(), and WriteUnlock().
AL_API void AL_APIENTRY alBufferSubSamplesSOFT | ( | ALuint | buffer, |
ALsizei | offset, | ||
ALsizei | samples, | ||
ALenum | channels, | ||
ALenum | type, | ||
const ALvoid * | data | ||
) |
Definition at line 499 of file alBuffer.c.
References al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, al_throwerr, al_try, ALCcontext_DecRef(), ChannelsFromFmt(), CHECK_VALUE, ConvertData(), ALbuffer::data, ALCcontext_struct::Device, ALbuffer::FmtChannels, ALbuffer::FmtType, FrameSizeFromFmt(), GetContextRef(), IsValidType(), ALbuffer::lock, LookupBuffer, NULL, 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.
Referenced by alGenBuffers(), DeletePlayer(), LoadSound(), and main().
AL_API ALvoid AL_APIENTRY alGenBuffers | ( | ALsizei | n, |
ALuint * | buffers | ||
) |
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().
Referenced by LoadSound(), and NewPlayer().
AL_API void AL_APIENTRY alGetBuffer3f | ( | ALuint | buffer, |
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 | buffer, |
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.
Referenced by alGetBufferfv().
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.
Referenced by alGetBufferiv().
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 void AL_APIENTRY alGetBufferSamplesSOFT | ( | ALuint | buffer, |
ALsizei | offset, | ||
ALsizei | samples, | ||
ALenum | channels, | ||
ALenum | type, | ||
ALvoid * | data | ||
) |
Definition at line 544 of file alBuffer.c.
References al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_INVALID_NAME, AL_INVALID_VALUE, al_throwerr, al_try, ALCcontext_DecRef(), ChannelsFromFmt(), CHECK_VALUE, ConvertData(), ALbuffer::data, ALCcontext_struct::Device, ALbuffer::FmtChannels, ALbuffer::FmtType, FrameSizeFromFmt(), GetContextRef(), IsValidType(), ALbuffer::lock, LookupBuffer, NULL, ReadLock(), ReadUnlock(), ALbuffer::SampleLen, and UserFmtIMA4.
AL_API ALboolean AL_APIENTRY alIsBuffer | ( | ALuint | buffer | ) |
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.
Referenced by LoadSound().
AL_API ALboolean AL_APIENTRY alIsBufferFormatSupportedSOFT | ( | ALenum | format | ) |
Definition at line 594 of file alBuffer.c.
References AL_FALSE, ALCcontext_DecRef(), DecomposeFormat(), GetContextRef(), and ret.
Definition at line 2109 of file alBuffer.c.
References FmtByte, FmtFloat, and FmtShort.
Referenced by alBufferSubDataSOFT(), alGetBufferi(), alSourceQueueBuffers(), FrameSizeFromFmt(), LoadData(), and SetSourceiv().
ALuint BytesFromUserFmt | ( | enum UserFmtType | type | ) |
Definition at line 2008 of file alBuffer.c.
References UserFmtAlaw, UserFmtByte, UserFmtByte3, UserFmtDouble, UserFmtFloat, UserFmtIMA4, UserFmtInt, UserFmtMulaw, UserFmtShort, UserFmtUByte, UserFmtUByte3, UserFmtUInt, and UserFmtUShort.
Referenced by alBufferSubDataSOFT(), and FrameSizeFromUserFmt().
ALuint ChannelsFromFmt | ( | enum FmtChannels | chans | ) |
Definition at line 2119 of file alBuffer.c.
References FmtMono, FmtQuad, FmtRear, FmtStereo, FmtX51, FmtX61, and FmtX71.
Referenced by alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), alGetBufferi(), alGetBufferSamplesSOFT(), alSourceQueueBuffers(), FrameSizeFromFmt(), GetSourceOffsets(), LoadData(), and SetSourceiv().
ALuint ChannelsFromUserFmt | ( | enum UserFmtChannels | chans | ) |
Definition at line 2028 of file alBuffer.c.
References UserFmtMono, UserFmtQuad, UserFmtRear, UserFmtStereo, UserFmtX51, UserFmtX61, and UserFmtX71.
Referenced by alBufferData(), alBufferSubDataSOFT(), FrameSizeFromUserFmt(), GetSampleOffset(), and LoadData().
Definition at line 1530 of file alBuffer.c.
|
static |
Definition at line 1551 of file alBuffer.c.
Definition at line 1275 of file alBuffer.c.
References Conv_ALbyte_ALshort(), and DecodeALaw().
Definition at line 1249 of file alBuffer.c.
|
static |
Definition at line 1277 of file alBuffer.c.
References DecodeByte3().
Definition at line 1267 of file alBuffer.c.
Definition at line 1261 of file alBuffer.c.
Definition at line 1257 of file alBuffer.c.
Definition at line 1273 of file alBuffer.c.
References Conv_ALbyte_ALshort(), and DecodeMuLaw().
Definition at line 1253 of file alBuffer.c.
Referenced by Conv_ALbyte_ALalaw(), and Conv_ALbyte_ALmulaw().
Definition at line 1251 of file alBuffer.c.
|
static |
Definition at line 1279 of file alBuffer.c.
References DecodeUByte3().
Definition at line 1259 of file alBuffer.c.
Definition at line 1255 of file alBuffer.c.
Definition at line 1490 of file alBuffer.c.
References Conv_ALdouble_ALshort(), and DecodeALaw().
Definition at line 1472 of file alBuffer.c.
|
static |
Definition at line 1492 of file alBuffer.c.
References DecodeByte3().
Definition at line 1486 of file alBuffer.c.
Definition at line 1484 of file alBuffer.c.
Definition at line 1480 of file alBuffer.c.
Definition at line 1488 of file alBuffer.c.
References Conv_ALdouble_ALshort(), and DecodeMuLaw().
Definition at line 1476 of file alBuffer.c.
Referenced by Conv_ALdouble_ALalaw(), and Conv_ALdouble_ALmulaw().
Definition at line 1474 of file alBuffer.c.
|
static |
Definition at line 1494 of file alBuffer.c.
References DecodeUByte3().
Definition at line 1482 of file alBuffer.c.
References u.
Definition at line 1478 of file alBuffer.c.
Definition at line 1465 of file alBuffer.c.
References Conv_ALfloat_ALshort(), and DecodeALaw().
Definition at line 1447 of file alBuffer.c.
|
static |
Definition at line 1467 of file alBuffer.c.
References DecodeByte3().
Definition at line 1461 of file alBuffer.c.
Definition at line 1459 of file alBuffer.c.
Definition at line 1455 of file alBuffer.c.
Definition at line 1463 of file alBuffer.c.
References Conv_ALfloat_ALshort(), and DecodeMuLaw().
Definition at line 1451 of file alBuffer.c.
Referenced by Conv_ALfloat_ALalaw(), and Conv_ALfloat_ALmulaw().
Definition at line 1449 of file alBuffer.c.
|
static |
Definition at line 1469 of file alBuffer.c.
References DecodeUByte3().
Definition at line 1457 of file alBuffer.c.
References u.
Definition at line 1453 of file alBuffer.c.
Definition at line 1407 of file alBuffer.c.
References Conv_ALint_ALshort(), and DecodeALaw().
Definition at line 1381 of file alBuffer.c.
|
static |
Definition at line 1409 of file alBuffer.c.
References DecodeByte3().
Definition at line 1399 of file alBuffer.c.
Definition at line 1393 of file alBuffer.c.
Definition at line 1389 of file alBuffer.c.
Definition at line 1405 of file alBuffer.c.
References Conv_ALint_ALshort(), and DecodeMuLaw().
Definition at line 1385 of file alBuffer.c.
Referenced by Conv_ALint_ALalaw(), and Conv_ALint_ALmulaw().
Definition at line 1383 of file alBuffer.c.
|
static |
Definition at line 1411 of file alBuffer.c.
References DecodeUByte3().
Definition at line 1391 of file alBuffer.c.
References u.
Definition at line 1387 of file alBuffer.c.
Definition at line 1509 of file alBuffer.c.
Definition at line 1341 of file alBuffer.c.
References Conv_ALshort_ALshort(), and DecodeALaw().
Definition at line 1315 of file alBuffer.c.
|
static |
Definition at line 1343 of file alBuffer.c.
References DecodeByte3().
Definition at line 1333 of file alBuffer.c.
Definition at line 1327 of file alBuffer.c.
Definition at line 1323 of file alBuffer.c.
Definition at line 1339 of file alBuffer.c.
References Conv_ALshort_ALshort(), and DecodeMuLaw().
Definition at line 1319 of file alBuffer.c.
Referenced by Conv_ALshort_ALalaw(), and Conv_ALshort_ALmulaw().
Definition at line 1317 of file alBuffer.c.
|
static |
Definition at line 1345 of file alBuffer.c.
References DecodeUByte3().
Definition at line 1325 of file alBuffer.c.
Definition at line 1321 of file alBuffer.c.
|
static |
Definition at line 1572 of file alBuffer.c.
Definition at line 1308 of file alBuffer.c.
References Conv_ALubyte_ALshort(), and DecodeALaw().
Definition at line 1282 of file alBuffer.c.
|
static |
Definition at line 1310 of file alBuffer.c.
References DecodeByte3().
Definition at line 1300 of file alBuffer.c.
Definition at line 1294 of file alBuffer.c.
Definition at line 1290 of file alBuffer.c.
Definition at line 1306 of file alBuffer.c.
References Conv_ALubyte_ALshort(), and DecodeMuLaw().
Definition at line 1286 of file alBuffer.c.
Referenced by Conv_ALubyte_ALalaw(), and Conv_ALubyte_ALmulaw().
Definition at line 1284 of file alBuffer.c.
|
static |
Definition at line 1312 of file alBuffer.c.
References DecodeUByte3().
Definition at line 1292 of file alBuffer.c.
Definition at line 1288 of file alBuffer.c.
Definition at line 1440 of file alBuffer.c.
References Conv_ALuint_ALshort(), and DecodeALaw().
Definition at line 1414 of file alBuffer.c.
|
static |
Definition at line 1442 of file alBuffer.c.
References DecodeByte3().
Definition at line 1432 of file alBuffer.c.
References u.
Definition at line 1426 of file alBuffer.c.
References u.
Definition at line 1422 of file alBuffer.c.
References u.
Definition at line 1438 of file alBuffer.c.
References Conv_ALuint_ALshort(), and DecodeMuLaw().
Definition at line 1418 of file alBuffer.c.
Referenced by Conv_ALuint_ALalaw(), and Conv_ALuint_ALmulaw().
Definition at line 1416 of file alBuffer.c.
|
static |
Definition at line 1444 of file alBuffer.c.
References DecodeUByte3().
Definition at line 1424 of file alBuffer.c.
Definition at line 1420 of file alBuffer.c.
Definition at line 1374 of file alBuffer.c.
References Conv_ALushort_ALshort(), and DecodeALaw().
Definition at line 1348 of file alBuffer.c.
|
static |
Definition at line 1376 of file alBuffer.c.
References DecodeByte3().
Definition at line 1366 of file alBuffer.c.
Definition at line 1360 of file alBuffer.c.
Definition at line 1356 of file alBuffer.c.
Definition at line 1372 of file alBuffer.c.
References Conv_ALushort_ALshort(), and DecodeMuLaw().
Definition at line 1352 of file alBuffer.c.
Referenced by Conv_ALushort_ALalaw(), and Conv_ALushort_ALmulaw().
Definition at line 1350 of file alBuffer.c.
|
static |
Definition at line 1378 of file alBuffer.c.
References DecodeUByte3().
Definition at line 1358 of file alBuffer.c.
Definition at line 1354 of file alBuffer.c.
|
static |
Definition at line 1812 of file alBuffer.c.
References memcpy.
|
static |
Definition at line 1885 of file alBuffer.c.
References UserFmtAlaw, UserFmtByte, UserFmtByte3, UserFmtDouble, UserFmtFloat, UserFmtIMA4, UserFmtInt, UserFmtMulaw, UserFmtShort, UserFmtUByte, UserFmtUByte3, UserFmtUInt, and UserFmtUShort.
Referenced by alBufferSubDataSOFT(), alBufferSubSamplesSOFT(), alGetBufferSamplesSOFT(), and LoadData().
Definition at line 1059 of file alBuffer.c.
References aLawDecompressionTable.
Referenced by Conv_ALbyte_ALalaw(), Conv_ALdouble_ALalaw(), Conv_ALfloat_ALalaw(), Conv_ALint_ALalaw(), Conv_ALshort_ALalaw(), Conv_ALubyte_ALalaw(), Conv_ALuint_ALalaw(), and Conv_ALushort_ALalaw().
|
static |
Definition at line 1206 of file alBuffer.c.
References IS_LITTLE_ENDIAN.
Referenced by Conv_ALbyte_ALbyte3(), Conv_ALdouble_ALbyte3(), Conv_ALfloat_ALbyte3(), Conv_ALint_ALbyte3(), Conv_ALshort_ALbyte3(), Conv_ALubyte_ALbyte3(), Conv_ALuint_ALbyte3(), and Conv_ALushort_ALbyte3().
Definition at line 1088 of file alBuffer.c.
References clampi(), IMA4Codeword, IMA4Index_adjust, IMAStep_size, j, k, MaxChannels, and nibble().
Definition at line 1034 of file alBuffer.c.
References muLawDecompressionTable.
Referenced by Conv_ALbyte_ALmulaw(), Conv_ALdouble_ALmulaw(), Conv_ALfloat_ALmulaw(), Conv_ALint_ALmulaw(), Conv_ALshort_ALmulaw(), Conv_ALubyte_ALmulaw(), Conv_ALuint_ALmulaw(), and Conv_ALushort_ALmulaw().
|
static |
Definition at line 1227 of file alBuffer.c.
References IS_LITTLE_ENDIAN.
Referenced by Conv_ALbyte_ALubyte3(), Conv_ALdouble_ALubyte3(), Conv_ALfloat_ALubyte3(), Conv_ALint_ALubyte3(), Conv_ALshort_ALubyte3(), Conv_ALubyte_ALubyte3(), Conv_ALuint_ALubyte3(), and Conv_ALushort_ALubyte3().
|
static |
Definition at line 2133 of file alBuffer.c.
References AL_5POINT1_16_SOFT, AL_5POINT1_32F_SOFT, AL_5POINT1_8_SOFT, AL_6POINT1_16_SOFT, AL_6POINT1_32F_SOFT, AL_6POINT1_8_SOFT, AL_7POINT1_16_SOFT, AL_7POINT1_32F_SOFT, AL_7POINT1_8_SOFT, AL_FALSE, AL_FORMAT_QUAD16_LOKI, AL_FORMAT_QUAD8_LOKI, AL_MONO16_SOFT, AL_MONO32F_SOFT, AL_MONO8_SOFT, AL_QUAD16_SOFT, AL_QUAD32F_SOFT, AL_QUAD8_SOFT, AL_REAR16_SOFT, AL_REAR32F_SOFT, AL_REAR8_SOFT, AL_STEREO16_SOFT, AL_STEREO32F_SOFT, AL_STEREO8_SOFT, AL_TRUE, COUNTOF, FmtByte, FmtFloat, FmtMono, FmtQuad, FmtRear, FmtShort, FmtStereo, FmtX51, FmtX61, FmtX71, and i.
Referenced by alIsBufferFormatSupportedSOFT(), and LoadData().
|
static |
Definition at line 2042 of file alBuffer.c.
References AL_FALSE, AL_FORMAT_51CHN16, AL_FORMAT_51CHN32, AL_FORMAT_51CHN8, AL_FORMAT_51CHN_MULAW, AL_FORMAT_61CHN16, AL_FORMAT_61CHN32, AL_FORMAT_61CHN8, AL_FORMAT_61CHN_MULAW, AL_FORMAT_71CHN16, AL_FORMAT_71CHN32, AL_FORMAT_71CHN8, AL_FORMAT_71CHN_MULAW, AL_FORMAT_MONO16, AL_FORMAT_MONO8, AL_FORMAT_MONO_ALAW_EXT, AL_FORMAT_MONO_DOUBLE_EXT, AL_FORMAT_MONO_FLOAT32, AL_FORMAT_MONO_IMA4, AL_FORMAT_MONO_MULAW, AL_FORMAT_QUAD16, AL_FORMAT_QUAD16_LOKI, AL_FORMAT_QUAD32, AL_FORMAT_QUAD8, AL_FORMAT_QUAD8_LOKI, AL_FORMAT_QUAD_MULAW, AL_FORMAT_REAR16, AL_FORMAT_REAR32, AL_FORMAT_REAR8, AL_FORMAT_REAR_MULAW, AL_FORMAT_STEREO16, AL_FORMAT_STEREO8, AL_FORMAT_STEREO_ALAW_EXT, AL_FORMAT_STEREO_DOUBLE_EXT, AL_FORMAT_STEREO_FLOAT32, AL_FORMAT_STEREO_IMA4, AL_FORMAT_STEREO_MULAW, AL_TRUE, COUNTOF, i, UserFmtAlaw, UserFmtDouble, UserFmtFloat, UserFmtIMA4, UserFmtMono, UserFmtMulaw, UserFmtQuad, UserFmtRear, UserFmtShort, UserFmtStereo, UserFmtUByte, UserFmtX51, UserFmtX61, and UserFmtX71.
Referenced by alBufferData(), and alBufferSubDataSOFT().
Definition at line 1062 of file alBuffer.c.
References aLawClip, aLawCompressTable, maxi(), mini(), and sign.
|
static |
Definition at line 1213 of file alBuffer.c.
References IS_LITTLE_ENDIAN, and ret.
|
static |
Definition at line 1138 of file alBuffer.c.
References clampi(), IMA4Codeword, IMA4Index_adjust, IMAStep_size, j, k, mini(), and nibble().
Definition at line 1037 of file alBuffer.c.
References maxi(), mini(), muLawBias, muLawClip, muLawCompressTable, and sign.
|
static |
Definition at line 1234 of file alBuffer.c.
References IS_LITTLE_ENDIAN, and ret.
Definition at line 2206 of file alBuffer.c.
References AL_5POINT1_SOFT, AL_6POINT1_SOFT, AL_7POINT1_SOFT, AL_FALSE, AL_MONO_SOFT, AL_QUAD_SOFT, AL_REAR_SOFT, AL_STEREO_SOFT, and AL_TRUE.
Referenced by alBufferSamplesSOFT().
Definition at line 2187 of file alBuffer.c.
References AL_BYTE3_SOFT, AL_BYTE_SOFT, AL_DOUBLE_SOFT, AL_FALSE, AL_FLOAT_SOFT, AL_INT_SOFT, AL_SHORT_SOFT, AL_TRUE, AL_UNSIGNED_BYTE3_SOFT, AL_UNSIGNED_BYTE_SOFT, AL_UNSIGNED_INT_SOFT, and AL_UNSIGNED_SHORT_SOFT.
Referenced by alBufferSamplesSOFT(), alBufferSubSamplesSOFT(), and alGetBufferSamplesSOFT().
|
static |
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
Definition at line 1939 of file alBuffer.c.
References AL_FALSE, AL_INVALID_ENUM, AL_INVALID_OPERATION, AL_NO_ERROR, AL_OUT_OF_MEMORY, BytesFromFmt(), ChannelsFromFmt(), ChannelsFromUserFmt(), ConvertData(), ALbuffer::data, DecomposeFormat(), ALbuffer::FmtChannels, ALbuffer::FmtType, ALbuffer::Format, FrameSizeFromUserFmt(), ALbuffer::Frequency, ALbuffer::lock, ALbuffer::LoopEnd, ALbuffer::LoopStart, NULL, ALbuffer::OriginalChannels, ALbuffer::OriginalSize, ALbuffer::OriginalType, realloc, ALbuffer::ref, ALbuffer::SampleLen, UserFmtIMA4, WriteLock(), and WriteUnlock().
Referenced by alBufferData(), and alBufferSamplesSOFT().
Definition at line 2228 of file alBuffer.c.
References UIntMap::array, ALCdevice_struct::BufferMap, ALbuffer::data, free, FreeThunkEntry(), i, ALbuffer::id, memset, NULL, UIntMap::size, and UIntMap::value.
Referenced by FreeDevice().
Definition at line 170 of file alBuffer.c.
Referenced by EncodeALaw().
|
static |
Definition at line 171 of file alBuffer.c.
Referenced by EncodeALaw().
Definition at line 134 of file alBuffer.c.
Referenced by DecodeALaw().
Definition at line 61 of file alBuffer.c.
Referenced by DecodeIMA4Block(), and EncodeIMA4Block().
Definition at line 67 of file alBuffer.c.
Referenced by DecodeIMA4Block(), and EncodeIMA4Block().
Definition at line 48 of file alBuffer.c.
Referenced by DecodeIMA4Block(), and EncodeIMA4Block().
Definition at line 110 of file alBuffer.c.
Referenced by EncodeMuLaw().
Definition at line 111 of file alBuffer.c.
Referenced by EncodeMuLaw().
|
static |
Definition at line 112 of file alBuffer.c.
Referenced by EncodeMuLaw().
Definition at line 74 of file alBuffer.c.
Referenced by DecodeMuLaw().