aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-12-17 19:29:39 -0800
committerChris Robinson <[email protected]>2021-12-17 19:29:39 -0800
commitd5740589e52784d12d5592a2853066ae188f2379 (patch)
tree8850f4232a211d9cfc67eabf3a3de57081b88da4 /al/source.cpp
parentcbbc4dc8faf14f234d156ccc312b952ed9bc4e8e (diff)
Set the voice's ambisonic order for playing super stereo
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/al/source.cpp b/al/source.cpp
index 1bf0552a..ec3c7d8a 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -501,7 +501,7 @@ void InitVoice(Voice *voice, ALsource *source, ALbufferQueueItem *BufferList, AL
voice->mFrameSize = buffer->frameSizeFromFmt();
voice->mAmbiLayout = IsUHJ(voice->mFmtChannels) ? AmbiLayout::FuMa : buffer->mAmbiLayout;
voice->mAmbiScaling = IsUHJ(voice->mFmtChannels) ? AmbiScaling::UHJ : buffer->mAmbiScaling;
- voice->mAmbiOrder = buffer->mAmbiOrder;
+ voice->mAmbiOrder = (voice->mFmtChannels == FmtSuperStereo) ? 1 : buffer->mAmbiOrder;
if(buffer->mCallback) voice->mFlags |= VoiceIsCallback;
else if(source->SourceType == AL_STATIC) voice->mFlags |= VoiceIsStatic;