From aace50ebf4c97f62adceef88e42babf524ff2e28 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 8 Apr 2010 15:58:11 -0700 Subject: Store the panning LUT in the device --- OpenAL32/Include/alMain.h | 6 +++--- OpenAL32/Include/alu.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index e5c1f63b..c7f4bd72 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -279,6 +279,9 @@ struct ALCdevice_struct ALfloat ChannelMatrix[OUTPUTCHANNELS][OUTPUTCHANNELS]; + ALfloat PanningLUT[OUTPUTCHANNELS * LUT_NUM]; + ALuint NumChan; + // Contexts created on this device ALCcontext **Contexts; ALuint NumContexts; @@ -324,9 +327,6 @@ struct ALCcontext_struct ALfloat DopplerVelocity; ALfloat flSpeedOfSound; - ALfloat PanningLUT[OUTPUTCHANNELS * LUT_NUM]; - ALint NumChan; - ALCdevice *Device; const ALCchar *ExtensionList; diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index fe641090..32b411d5 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -175,7 +175,7 @@ static __inline ALint aluCart2LUTpos(ALfloat re, ALfloat im) return pos%LUT_NUM; } -ALvoid aluInitPanning(ALCcontext *Context); +ALvoid aluInitPanning(ALCdevice *Device); ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size); ALvoid aluHandleDisconnect(ALCdevice *device); -- cgit v1.2.3