diff options
author | Chris Robinson <[email protected]> | 2020-05-19 10:21:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-05-19 10:21:19 -0700 |
commit | a512eae7bb3554723b7b290985404e7c480b9bf1 (patch) | |
tree | 2789d4b3ea9d6d0c47b1526196603bf13f21edfb | |
parent | 463591663c2421b3436edc446d173380d6a6e106 (diff) |
Move BUFFERSIZE and FloatBufferLine to a separate header
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | alc/alcmain.h | 10 | ||||
-rw-r--r-- | alc/bufferline.h | 15 |
3 files changed, 17 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 64c8116e..4793afe5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -606,6 +606,7 @@ SET(ALC_OBJS alc/bsinc_defs.h alc/bsinc_tables.cpp alc/bsinc_tables.h + alc/bufferline.h alc/compat.h alc/converter.cpp alc/converter.h diff --git a/alc/alcmain.h b/alc/alcmain.h index 9c539c44..3a14e68f 100644 --- a/alc/alcmain.h +++ b/alc/alcmain.h @@ -23,6 +23,7 @@ #include "alspan.h" #include "ambidefs.h" #include "atomic.h" +#include "bufferline.h" #include "devformat.h" #include "filters/splitter.h" #include "hrtf.h" @@ -157,15 +158,6 @@ struct BFChannelConfig { ALuint Index; }; -/* Size for temporary storage of buffer data, in floats. Larger values need - * 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. - */ -#define BUFFERSIZE 1024 - -using FloatBufferLine = std::array<float,BUFFERSIZE>; - /* 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)! diff --git a/alc/bufferline.h b/alc/bufferline.h new file mode 100644 index 00000000..79f0996c --- /dev/null +++ b/alc/bufferline.h @@ -0,0 +1,15 @@ +#ifndef ALC_BUFFERLINE_H +#define ALC_BUFFERLINE_H + +#include <array> + +/* Size for temporary storage of buffer data, in floats. Larger values need + * 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. + */ +#define BUFFERSIZE 1024 + +using FloatBufferLine = std::array<float,BUFFERSIZE>; + +#endif /* ALC_BUFFERLINE_H */ |