diff options
author | Chris Robinson <[email protected]> | 2014-03-18 19:56:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-18 19:56:25 -0700 |
commit | d6f7aac1bbc2c51dbe53e30a50275d550a020df6 (patch) | |
tree | eff721968bc56422bca8e565c3842d1c1422bcc8 /OpenAL32/Include | |
parent | 71b177918d2e5864edf45088bf1e5f59d2cd8871 (diff) |
Use a separate struct for tracking active sources
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 6 | ||||
-rw-r--r-- | OpenAL32/Include/alSource.h | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index bb7d9367..1d5eb888 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -733,9 +733,9 @@ struct ALCcontext_struct volatile ALfloat SpeedOfSound; volatile ALenum DeferUpdates; - struct ALsource **ActiveSources; - ALsizei ActiveSourceCount; - ALsizei MaxActiveSources; + struct ALactivesource **ActiveSources; + ALsizei ActiveSourceCount; + ALsizei MaxActiveSources; struct ALeffectslot **ActiveEffectSlots; ALsizei ActiveEffectSlotCount; diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 0432cb32..ecc62a37 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -29,6 +29,12 @@ typedef struct ALbufferlistitem { struct ALbufferlistitem *prev; } ALbufferlistitem; + +typedef struct ALactivesource { + struct ALsource *Source; +} ALactivesource; + + typedef struct HrtfState { ALboolean Moving; ALuint Counter; @@ -78,8 +84,7 @@ typedef struct SendParams { } SendParams; -typedef struct ALsource -{ +typedef struct ALsource { /** Source properties. */ volatile ALfloat Pitch; volatile ALfloat Gain; |