diff options
author | Chris Robinson <[email protected]> | 2018-12-26 13:20:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-26 13:20:59 -0800 |
commit | 5c449de73f491a73cbc948b3301b8305f20be648 (patch) | |
tree | 9f790202d0096f399820ff189615f58990eef74a /Alc/uhjfilter.h | |
parent | 3b9defa4afcbfa96b47cb528d91abb65416d4330 (diff) |
Improve UHJ2 encoding
Diffstat (limited to 'Alc/uhjfilter.h')
-rw-r--r-- | Alc/uhjfilter.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Alc/uhjfilter.h b/Alc/uhjfilter.h index c6335af3..1351491b 100644 --- a/Alc/uhjfilter.h +++ b/Alc/uhjfilter.h @@ -37,17 +37,17 @@ struct AllPassState { */ struct Uhj2Encoder { - AllPassState Filter1_Y[4]; - AllPassState Filter2_WX[4]; - AllPassState Filter1_WX[4]; - ALfloat LastY{0.0f}, LastWX{0.0f}; + AllPassState mFilter1_Y[4]; + AllPassState mFilter2_WX[4]; + AllPassState mFilter1_WX[4]; + ALfloat mLastY{0.0f}, mLastWX{0.0f}; + + /* Encodes a 2-channel UHJ (stereo-compatible) signal from a B-Format input + * signal. The input must use FuMa channel ordering and scaling. + */ + void encode(ALfloat *LeftOut, ALfloat *RightOut, ALfloat (*InSamples)[BUFFERSIZE], const ALsizei SamplesToDo); DEF_NEWDEL(Uhj2Encoder) }; -/* Encodes a 2-channel UHJ (stereo-compatible) signal from a B-Format input - * signal. The input must use FuMa channel ordering and scaling. - */ -void EncodeUhj2(Uhj2Encoder *enc, ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, ALfloat (*RESTRICT InSamples)[BUFFERSIZE], ALsizei SamplesToDo); - #endif /* UHJFILTER_H */ |