aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-11-04 04:41:11 -0800
committerChris Robinson <[email protected]>2012-11-04 04:41:11 -0800
commite2368eb960ba1a43f365103a69e03803b8171731 (patch)
tree17c5f08eaf3b45f4903bea71db56362faed3afa7 /OpenAL32/Include
parent3e71a7cb9473cc403ad324d7e8468e2d6abd7de6 (diff)
Use an array to specify the offset for each channel of the device buffer
This effectively inverts the DevChannels array
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index b0f0135f..00512997 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -603,7 +603,7 @@ struct ALCdevice_struct
// Device flags
ALuint Flags;
- enum Channel DevChannels[MaxChannels];
+ ALuint ChannelOffsets[MaxChannels];
enum Channel Speaker2Chan[MaxChannels];
ALfloat SpeakerAngle[MaxChannels];
@@ -659,6 +659,10 @@ struct ALCdevice_struct
// Specifies if the device is currently running
#define DEVICE_RUNNING (1<<31)
+/* Invalid channel offset */
+#define INVALID_OFFSET (~0u)
+
+
#define LookupBuffer(m, k) ((struct ALbuffer*)LookupUIntMapKey(&(m)->BufferMap, (k)))
#define LookupEffect(m, k) ((struct ALeffect*)LookupUIntMapKey(&(m)->EffectMap, (k)))
#define LookupFilter(m, k) ((struct ALfilter*)LookupUIntMapKey(&(m)->FilterMap, (k)))