diff options
author | Chris Robinson <[email protected]> | 2019-05-17 20:39:28 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-17 20:39:28 -0700 |
commit | 515a201e30272826bd2bab58eecf42a5fa263230 (patch) | |
tree | 03ea283dbd7c9ce332282e85b19d4f1f54efd927 /OpenAL32/Include | |
parent | 5ac19673db211d1bee7687335af96cee4e6b40d8 (diff) |
Restructure some voice fields
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alu.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 44083688..642aeddc 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -247,15 +247,17 @@ struct ALvoice { ResamplerFunc mResampler; + InterpState mResampleState; + ALuint mFlags; - using ResamplePaddingArray = std::array<ALfloat,MAX_RESAMPLE_PADDING*2>; - alignas(16) std::array<ResamplePaddingArray,MAX_INPUT_CHANNELS> mPrevSamples; + struct ResampleData { + alignas(16) std::array<ALfloat,MAX_RESAMPLE_PADDING*2> mPrevSamples; - InterpState mResampleState; - - std::array<ALfloat,MAX_INPUT_CHANNELS> mAmbiScales; - std::array<BandSplitter,MAX_INPUT_CHANNELS> mAmbiSplitter; + ALfloat mAmbiScale; + BandSplitter mAmbiSplitter; + }; + std::array<ResampleData,MAX_INPUT_CHANNELS> mResampleData; struct { int FilterType; |