aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
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 /OpenAL32/Include/alMain.h
parenta6287fd407b87b0bf983dcf8fc17ac66c0ae7d23 (diff)
Put temporary storage in the device instead of on the stack
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-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 1449054f..8b0850de 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -587,7 +587,7 @@ enum DeviceType {
/* Size for temporary storage of buffer data, in ALfloats. Larger values need
- * more stack, while smaller values may need more iterations. The value needs
+ * more memory, while smaller values may need more iterations. The value needs
* to be a sensible size, however, as it constrains the max stepping value used
* for mixing, as well as the maximum number of samples per mixing iteration.
*
@@ -654,6 +654,10 @@ struct ALCdevice_struct
ALfloat SpeakerAngle[MaxChannels];
ALuint NumChan;
+ /* Temp storage used for mixing. +1 for the predictive sample. */
+ ALIGN(16) ALfloat SampleData1[BUFFERSIZE+1];
+ ALIGN(16) ALfloat SampleData2[BUFFERSIZE+1];
+
// Dry path buffer mix
ALIGN(16) ALfloat DryBuffer[MaxChannels][BUFFERSIZE];