aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-23 15:55:12 -0800
committerChris Robinson <[email protected]>2018-12-23 15:55:12 -0800
commit11d815cfd304da3f1a0fd4178db932ad6c47d8ce (patch)
treef8ed98d82af07a64d47215a83fb8953e8376c303 /Alc/bformatdec.h
parentba9aba699d00bf2d2f29d298d24dfc87eb5e7904 (diff)
Repack some AmbiUpsampler fields for better access patterns
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r--Alc/bformatdec.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h
index b5824545..ba6ceaa2 100644
--- a/Alc/bformatdec.h
+++ b/Alc/bformatdec.h
@@ -62,13 +62,14 @@ public:
private:
alignas(16) ALfloat mSamples[sNumBands][BUFFERSIZE];
- BandSplitter mXOver[4];
-
- std::array<std::array<std::array<ALfloat,MAX_OUTPUT_CHANNELS>,sNumBands>,4> mGains;
+ struct {
+ BandSplitter XOver;
+ std::array<std::array<ALfloat,MAX_OUTPUT_CHANNELS>,sNumBands> Gains;
+ } mInput[4];
public:
void reset(const ALCdevice *device);
- 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);
DEF_NEWDEL(AmbiUpsampler)
};