Move BUFFERSIZE and FloatBufferLine to a separate header

This commit is contained in:
Chris Robinson
2020-05-19 10:21:19 -07:00
parent 463591663c
commit a512eae7bb
3 changed files with 17 additions and 9 deletions
+1
View File
@@ -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
+1 -9
View File
@@ -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)!
+15
View File
@@ -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 */