aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-24 20:44:55 -0800
committerChris Robinson <[email protected]>2018-12-24 20:44:55 -0800
commit3b7f668b28dbc5ef156bad9aa79f16b32efb2eb3 (patch)
tree2e2d609422219894bd74419fb4bc2c60bea38b1b /Alc/bformatdec.h
parentfbae41020d8968d0e65af08584df4736b5ed7239 (diff)
Avoid an intermediate mixing buffer
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r--Alc/bformatdec.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h
index ba6ceaa2..7b5d1cd2 100644
--- a/Alc/bformatdec.h
+++ b/Alc/bformatdec.h
@@ -29,8 +29,6 @@ private:
std::array<ALfloat,BUFFERSIZE> *mSamplesHF;
std::array<ALfloat,BUFFERSIZE> *mSamplesLF;
- alignas(16) ALfloat mChannelMix[BUFFERSIZE];
-
struct {
BandSplitter XOver;
ALfloat Gains[sNumBands];
@@ -43,10 +41,10 @@ public:
void reset(const AmbDecConf *conf, ALsizei chancount, ALuint srate, const ALsizei (&chanmap)[MAX_OUTPUT_CHANNELS]);
/* Decodes the ambisonic input to the given output channels. */
- void process(ALfloat (*RESTRICT OutBuffer)[BUFFERSIZE], const ALsizei OutChannels, const ALfloat (*RESTRICT InSamples)[BUFFERSIZE], const ALsizei SamplesToDo);
+ void process(ALfloat (*OutBuffer)[BUFFERSIZE], const ALsizei OutChannels, const ALfloat (*InSamples)[BUFFERSIZE], const ALsizei SamplesToDo);
/* Up-samples a first-order input to the decoder's configuration. */
- void upSample(ALfloat (*RESTRICT OutBuffer)[BUFFERSIZE], const ALfloat (*RESTRICT InSamples)[BUFFERSIZE], const ALsizei InChannels, const ALsizei SamplesToDo);
+ void upSample(ALfloat (*OutBuffer)[BUFFERSIZE], const ALfloat (*InSamples)[BUFFERSIZE], const ALsizei InChannels, const ALsizei SamplesToDo);
DEF_NEWDEL(BFormatDec)
};