diff options
author | Chris Robinson <[email protected]> | 2020-04-04 01:52:29 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-04 01:52:29 -0700 |
commit | fc906c97f52fd13549dfdfae229d0dc6d60a2865 (patch) | |
tree | 278b33097cd082f85442fe785579e6b78969e652 /alc/alc.cpp | |
parent | 902f5a0dd267e0849e93e863a24a0a350d1696f9 (diff) |
Track a buffer's ambisonic order
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 4992236a..bdd6a9ae 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2325,8 +2325,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) voice->mStep = 0; voice->mFlags |= VOICE_IS_FADING; - if((voice->mFmtChannels == FmtBFormat2D || voice->mFmtChannels == FmtBFormat3D) - && device->mAmbiOrder > voice->mAmbiOrder) + if(voice->mAmbiOrder && device->mAmbiOrder > voice->mAmbiOrder) { const uint8_t *OrderFromChan{(voice->mFmtChannels == FmtBFormat2D) ? AmbiIndex::OrderFrom2DChannel.data() : |