aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-22 11:34:16 -0800
committerChris Robinson <[email protected]>2018-01-22 11:34:16 -0800
commitfce72610bbed5705c12e38b84a2e088f1039e375 (patch)
tree4c3cc8b51ce05c7ba7d520662891569490ab4a96 /OpenAL32/Include/alMain.h
parent4a368ab9059fef78eb9c664052eab92cd6ea6096 (diff)
Add a flag for alBufferData to non-destructively resize the data
Requires having the same format as the last call to alBufferData. Also only makes sense when given a NULL data pointer, as otherwise the internal data will be overwritten anyway.
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 358b0bf6..6c30776b 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -48,9 +48,11 @@
#endif
#ifndef AL_SOFT_map_buffer
+#define AL_SOFT_map_buffer 1
typedef unsigned int ALbitfieldSOFT;
#define AL_MAP_READ_BIT_SOFT 0x01000000
#define AL_MAP_WRITE_BIT_SOFT 0x02000000
+#define AL_PRESERVE_DATA_BIT_SOFT 0x04000000
typedef void* (AL_APIENTRY*LPALMAPBUFFERSOFT)(ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access);
typedef void (AL_APIENTRY*LPALUNMAPBUFFERSOFT)(ALuint buffer);
#ifdef AL_ALEXT_PROTOTYPES