diff options
author | Chris Robinson <[email protected]> | 2011-07-16 16:59:20 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-16 16:59:20 -0700 |
commit | 163cc62a00f755e0df5d83f4196178bd85be9bde (patch) | |
tree | d1aa0417909420f02a7b7113b3417298f4644e40 /OpenAL32/Include/alMain.h | |
parent | 5f566ebf05873aafd54b7613d35d363fbb8943c2 (diff) |
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.
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 15 |
1 files changed, 13 insertions, 2 deletions
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 <stdint.h> @@ -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; |