aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alu.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-09 18:34:00 -0800
committerChris Robinson <[email protected]>2019-03-09 18:34:00 -0800
commit87479b4b3207a0600586c919c03b5cee7af5154e (patch)
treebf951619b457bcd4333a4b08c9e6558431ce99b9 /OpenAL32/Include/alu.h
parentef0f3351321a7488e60faa838a4628cfecf230b8 (diff)
Play dummy samples and force a fade out on stopping voices
Diffstat (limited to 'OpenAL32/Include/alu.h')
-rw-r--r--OpenAL32/Include/alu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index fbf21c47..90b6873a 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -252,7 +252,8 @@ struct ALvoice {
ALuint Offset; /* Number of output samples mixed since starting. */
- alignas(16) std::array<std::array<ALfloat,MAX_RESAMPLE_PADDING>,MAX_INPUT_CHANNELS> PrevSamples;
+ using ResamplePaddingArray = std::array<ALfloat,MAX_RESAMPLE_PADDING*2>;
+ alignas(16) std::array<ResamplePaddingArray,MAX_INPUT_CHANNELS> PrevSamples;
InterpState ResampleState;