diff options
author | Chris Robinson <[email protected]> | 2021-03-31 10:03:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-03-31 10:03:31 -0700 |
commit | b5e36007f136f817e6d14685377e781e224daf17 (patch) | |
tree | 2b16156169cba4f4139ff16391e619f49fedce80 /alc/effects/convolution.cpp | |
parent | 35a0f2665f834c107e39ec2dcfc3d9ae0a0b33ce (diff) |
Handle 3-channel UHJ audio buffers
Diffstat (limited to 'alc/effects/convolution.cpp')
-rw-r--r-- | alc/effects/convolution.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/effects/convolution.cpp b/alc/effects/convolution.cpp index d03d661f..1ee59604 100644 --- a/alc/effects/convolution.cpp +++ b/alc/effects/convolution.cpp @@ -382,7 +382,7 @@ void ConvolutionState::update(const ALCcontext *context, const EffectSlot *slot, * Not that UHJ should really ever be used for convolution, but it's a * valid format regardless. */ - if(mChannels == FmtUHJ2 && target.RealOut + if((mChannels == FmtUHJ2 || mChannels == FmtUHJ3) && target.RealOut && target.RealOut->ChannelIndex[FrontLeft] != INVALID_CHANNEL_INDEX && target.RealOut->ChannelIndex[FrontRight] != INVALID_CHANNEL_INDEX) { @@ -435,6 +435,7 @@ void ConvolutionState::update(const ALCcontext *context, const EffectSlot *slot, case FmtBFormat2D: case FmtBFormat3D: case FmtUHJ2: + case FmtUHJ3: break; } |