diff options
author | Chris Robinson <[email protected]> | 2019-09-28 14:35:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-28 14:35:42 -0700 |
commit | 4b746b8d37911600bb64e3cb9efe8c370968df1d (patch) | |
tree | 6362ae043e4390b4d97d110a3481e3ab1d05b600 /alc/alcmain.h | |
parent | 31ffb0887c44a910a5814cba1fdd5d69a4b49df2 (diff) |
Make MAX_RESAMPLER_PADDING specify the total padding
Diffstat (limited to 'alc/alcmain.h')
-rw-r--r-- | alc/alcmain.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/alc/alcmain.h b/alc/alcmain.h index 9182d5d4..c26b3a28 100644 --- a/alc/alcmain.h +++ b/alc/alcmain.h @@ -154,10 +154,11 @@ struct BFChannelConfig { using FloatBufferLine = std::array<float,BUFFERSIZE>; -/* Maximum number of samples to pad on either end of a buffer for resampling. - * Note that both the beginning and end need padding! +/* Maximum number of samples to pad on the ends of a buffer for resampling. + * Note that the padding is symmetric (half at the beginning and half at the + * end)! */ -#define MAX_RESAMPLE_PADDING 24 +#define MAX_RESAMPLER_PADDING 48 struct FrontStablizer { @@ -269,7 +270,7 @@ struct ALCdevice : public al::intrusive_ref<ALCdevice> { std::chrono::nanoseconds FixedLatency{0}; /* Temp storage used for mixer processing. */ - alignas(16) ALfloat SourceData[BUFFERSIZE + MAX_RESAMPLE_PADDING*2]; + alignas(16) ALfloat SourceData[BUFFERSIZE + MAX_RESAMPLER_PADDING]; alignas(16) ALfloat ResampledData[BUFFERSIZE]; alignas(16) ALfloat FilteredData[BUFFERSIZE]; union { |