aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/converter.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-28 22:42:46 -0800
committerChris Robinson <[email protected]>2018-11-28 22:42:46 -0800
commite017d9e40f4ce1698d31adc2d2a6ac4f13159a39 (patch)
tree4f6eed9d490b90a51decaa69607dd75364d19697 /Alc/converter.h
parent5df89c504e875fc956567a357dff2611772a95c0 (diff)
Clean up the converter a bit
Diffstat (limited to 'Alc/converter.h')
-rw-r--r--Alc/converter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Alc/converter.h b/Alc/converter.h
index 78cbdf64..326c8033 100644
--- a/Alc/converter.h
+++ b/Alc/converter.h
@@ -3,6 +3,7 @@
#include "alMain.h"
#include "alu.h"
+#include "almalloc.h"
struct SampleConverter {
enum DevFmtType mSrcType;
@@ -24,6 +25,8 @@ struct SampleConverter {
struct {
alignas(16) ALfloat mPrevSamples[MAX_RESAMPLE_PADDING*2];
} Chan[];
+
+ DEF_PLACE_NEWDEL()
};
SampleConverter *CreateSampleConverter(enum DevFmtType srcType, enum DevFmtType dstType, ALsizei numchans, ALsizei srcRate, ALsizei dstRate);
@@ -37,6 +40,8 @@ struct ChannelConverter {
enum DevFmtType mSrcType;
enum DevFmtChannels mSrcChans;
enum DevFmtChannels mDstChans;
+
+ DEF_PLACE_NEWDEL()
};
ChannelConverter *CreateChannelConverter(enum DevFmtType srcType, enum DevFmtChannels srcChans, enum DevFmtChannels dstChans);