From 163cc62a00f755e0df5d83f4196178bd85be9bde Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 16 Jul 2011 16:59:20 -0700 Subject: Add a couple new functions to handle deferred updates Currently no-ops, they will be used in place of alcSuspendContext and alcProcessContext for batching updates since the mentioned functions have no coherent functionality between system implementations. --- OpenAL32/Include/alMain.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index d9549cbf..a577db52 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -116,6 +116,17 @@ AL_API ALboolean AL_APIENTRY alIsBufferFormatSupportedSOFT(ALenum format); #define AL_VIRTUAL_CHANNELS_SOFT 0x1033 #endif +#ifndef AL_SOFT_deferred_updates +#define AL_SOFT_deferred_updates 1 +#define AL_DEFERRED_UPDATES_SOFT 0xC002 +typedef ALvoid (AL_APIENTRY*LPALDEFERUPDATESSOFT)(void); +typedef ALvoid (AL_APIENTRY*LPALPROCESSUPDATESSOFT)(void); +#ifdef AL_ALEXT_PROTOTYPES +AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void); +AL_API ALvoid AL_APIENTRY alProcessUpdatesSOFT(void); +#endif +#endif + #if defined(HAVE_STDINT_H) #include @@ -465,14 +476,14 @@ struct ALCcontext_struct ALenum LastError; ALboolean UpdateSources; - ALboolean Suspended; enum DistanceModel DistanceModel; - ALboolean SourceDistanceModel; + ALboolean SourceDistanceModel; ALfloat DopplerFactor; ALfloat DopplerVelocity; ALfloat flSpeedOfSound; + ALboolean DeferUpdates; struct ALsource **ActiveSources; ALsizei ActiveSourceCount; -- cgit v1.2.3