summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-05 06:42:26 -0700
committerChris Robinson <[email protected]>2012-10-05 06:42:26 -0700
commit0d26b0dcc2ed3c73bf01579f71c60a6845978593 (patch)
tree75da0fd329f9bd03e995d81f22596785558c77a5 /Alc
parenta6287fd407b87b0bf983dcf8fc17ac66c0ae7d23 (diff)
Put temporary storage in the device instead of on the stack
Diffstat (limited to 'Alc')
-rw-r--r--Alc/mixer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 5b180f1e..c46fa423 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -157,9 +157,8 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
for(chan = 0;chan < NumChannels;chan++)
{
- /* +1 for the predictive sample. */
- ALIGN(16) ALfloat SrcData[BUFFERSIZE+1];
- ALIGN(16) ALfloat ResampledData[BUFFERSIZE+1];
+ ALfloat *SrcData = Device->SampleData1;
+ ALfloat *ResampledData = Device->SampleData2;
ALuint SrcDataSize = 0;
if(Source->SourceType == AL_STATIC)