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 /core/bufferline.h | |
parent | eb9b9fb4e59cadc308b8ebcdf3da59a961382224 (diff) |
Change a couple macros into constexpr variables
Diffstat (limited to 'core/bufferline.h')
-rw-r--r-- | core/bufferline.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bufferline.h b/core/bufferline.h index 07983140..503e208d 100644 --- a/core/bufferline.h +++ b/core/bufferline.h @@ -7,8 +7,8 @@ * more memory and are harder on cache, while smaller values may need more * iterations for mixing. */ -#define BUFFERSIZE 1024 +constexpr int BufferLineSize{1024}; -using FloatBufferLine = std::array<float,BUFFERSIZE>; +using FloatBufferLine = std::array<float,BufferLineSize>; #endif /* CORE_BUFFERLINE_H */ |