diff options
author | Chris Robinson <[email protected]> | 2010-09-21 09:43:35 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-09-21 09:43:35 -0700 |
commit | 2d4453968d67af5cfee81c09adcc7b1ac6bd03f6 (patch) | |
tree | 1fb67bd30f2b630d10c397707e863c76f9292082 /include | |
parent | a2580a85a82bdfdd25f71e17fe233ec5beaac2e0 (diff) |
Implement AL_SOFT_buffer_sub_data using the current AL_EXT_buffer_sub_data spec
This extension can be useful for some applications, but a full EXT version may
not be ready for some time. Using the SOFT moniker will help differentiate it
in case changes need to be done for the EXT version.
Diffstat (limited to 'include')
-rw-r--r-- | include/AL/alext.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/AL/alext.h b/include/AL/alext.h index eadc715d..c78b8c36 100644 --- a/include/AL/alext.h +++ b/include/AL/alext.h @@ -143,6 +143,16 @@ ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void); #define AL_SOURCE_DISTANCE_MODEL 0x200 #endif +#ifndef AL_SOFT_buffer_sub_data +#define AL_SOFT_buffer_sub_data 1 +#define AL_BYTE_RW_OFFSETS_SOFT 0x1031 +#define AL_SAMPLE_RW_OFFSETS_SOFT 0x1032 +typedef ALvoid (AL_APIENTRY*PFNALBUFFERSUBDATASOFTPROC)(ALuint,ALenum,const ALvoid*,ALsizei,ALsizei); +#ifdef AL_ALEXT_PROTOTYPES +AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length); +#endif +#endif + #ifdef __cplusplus } #endif |