diff options
author | Chris Robinson <[email protected]> | 2020-11-28 03:38:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-11-28 03:38:20 -0800 |
commit | 8750810f5cfceeffd5acf2f21e779d470d0dc88b (patch) | |
tree | 447b24c8d1b3ab926f2aa2ae40617938df1e9bb1 /alc/alcmain.h | |
parent | eb9b9fb4e59cadc308b8ebcdf3da59a961382224 (diff) |
Change a couple macros into constexpr variables
Diffstat (limited to 'alc/alcmain.h')
-rw-r--r-- | alc/alcmain.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/alc/alcmain.h b/alc/alcmain.h index b95791fb..7949baf2 100644 --- a/alc/alcmain.h +++ b/alc/alcmain.h @@ -251,16 +251,16 @@ struct ALCdevice : public al::intrusive_ref<ALCdevice> { std::chrono::nanoseconds FixedLatency{0}; /* Temp storage used for mixer processing. */ - alignas(16) float SourceData[BUFFERSIZE + MAX_RESAMPLER_PADDING]; - alignas(16) float ResampledData[BUFFERSIZE]; - alignas(16) float FilteredData[BUFFERSIZE]; + alignas(16) float SourceData[BufferLineSize + MaxResamplerPadding]; + alignas(16) float ResampledData[BufferLineSize]; + alignas(16) float FilteredData[BufferLineSize]; union { - alignas(16) float HrtfSourceData[BUFFERSIZE + HRTF_HISTORY_LENGTH]; - alignas(16) float NfcSampleData[BUFFERSIZE]; + alignas(16) float HrtfSourceData[BufferLineSize + HRTF_HISTORY_LENGTH]; + alignas(16) float NfcSampleData[BufferLineSize]; }; /* Persistent storage for HRTF mixing. */ - alignas(16) float2 HrtfAccumData[BUFFERSIZE + HRIR_LENGTH + HRTF_DIRECT_DELAY]; + alignas(16) float2 HrtfAccumData[BufferLineSize + HRIR_LENGTH + HRTF_DIRECT_DELAY]; /* Mixing buffer used by the Dry mix and Real output. */ al::vector<FloatBufferLine, 16> MixBuffer; |