From 936acf8c10bf08c302542bad8069b740c4ccd3a5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 10 Apr 2011 09:48:37 -0700 Subject: Allow the buffer_samples API to be retrieved --- Alc/ALc.c | 6 ++++++ OpenAL32/alExtension.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/Alc/ALc.c b/Alc/ALc.c index 8b4ef439..2dbe52f9 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -245,6 +245,12 @@ static const ALCfunction alcFunctions[] = { { "alGetAuxiliaryEffectSlotfv", (ALCvoid *) alGetAuxiliaryEffectSlotfv}, { "alBufferSubDataSOFT", (ALCvoid *) alBufferSubDataSOFT }, + + { "alBufferSamplesSOFT", (ALCvoid *) alBufferSamplesSOFT }, + { "alBufferSubSamplesSOFT", (ALCvoid *) alBufferSubSamplesSOFT }, + { "alGetBufferSamplesSOFT", (ALCvoid *) alGetBufferSamplesSOFT }, + { "alIsBufferFormatSupportedSOFT",(ALCvoid *) alIsBufferFormatSupportedSOFT}, + #if 0 { "alGenDatabuffersEXT", (ALCvoid *) alGenDatabuffersEXT }, { "alDeleteDatabuffersEXT", (ALCvoid *) alDeleteDatabuffersEXT }, diff --git a/OpenAL32/alExtension.c b/OpenAL32/alExtension.c index 67d12050..ed7e590f 100644 --- a/OpenAL32/alExtension.c +++ b/OpenAL32/alExtension.c @@ -136,6 +136,50 @@ static const ALenums enumeration[] = { { "AL_FORMAT_71CHN_MULAW", AL_FORMAT_71CHN_MULAW }, { "AL_FORMAT_REAR_MULAW", AL_FORMAT_REAR_MULAW }, + // Internal Buffer Formats + { "AL_MONO8", AL_MONO8 }, + { "AL_MONO16", AL_MONO16 }, + { "AL_MONO32F", AL_MONO32F }, + { "AL_STEREO8", AL_STEREO8 }, + { "AL_STEREO16", AL_STEREO16 }, + { "AL_STEREO32F", AL_STEREO32F }, + { "AL_QUAD8", AL_QUAD8 }, + { "AL_QUAD16", AL_QUAD16 }, + { "AL_QUAD32F", AL_QUAD32F }, + { "AL_REAR8", AL_REAR8 }, + { "AL_REAR16", AL_REAR16 }, + { "AL_REAR32F", AL_REAR32F }, + { "AL_5POINT1_8", AL_5POINT1_8 }, + { "AL_5POINT1_16", AL_5POINT1_16 }, + { "AL_5POINT1_32F", AL_5POINT1_32F }, + { "AL_6POINT1_8", AL_6POINT1_8 }, + { "AL_6POINT1_16", AL_6POINT1_16 }, + { "AL_6POINT1_32F", AL_6POINT1_32F }, + { "AL_7POINT1_8", AL_7POINT1_8 }, + { "AL_7POINT1_16", AL_7POINT1_16 }, + { "AL_7POINT1_32F", AL_7POINT1_32F }, + + // Buffer Channel Configurations + { "AL_MONO", AL_MONO }, + { "AL_STEREO", AL_STEREO }, + { "AL_QUAD", AL_QUAD }, + { "AL_REAR", AL_REAR }, + { "AL_5POINT1", AL_5POINT1 }, + { "AL_6POINT1", AL_6POINT1 }, + { "AL_7POINT1", AL_7POINT1 }, + + // Buffer Sample Types + { "AL_BYTE", AL_BYTE }, + { "AL_UNSIGNED_BYTE", AL_UNSIGNED_BYTE }, + { "AL_SHORT", AL_SHORT }, + { "AL_UNSIGNED_SHORT", AL_UNSIGNED_SHORT }, + { "AL_INT", AL_INT }, + { "AL_UNSIGNED_INT", AL_UNSIGNED_INT }, + { "AL_FLOAT", AL_FLOAT }, + { "AL_DOUBLE", AL_DOUBLE }, + { "AL_MULAW", AL_MULAW }, + { "AL_IMA4", AL_IMA4 }, + // Buffer attributes { "AL_FREQUENCY", AL_FREQUENCY }, { "AL_BITS", AL_BITS }, -- cgit v1.2.3