From 893a1bedbc0048e159e4471ac21f03cfee3a72ea Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 4 Dec 2012 05:30:06 -0800 Subject: [PATCH] Use +/-90 degrees for stereo sources with non-HRTF stereo output. --- Alc/ALu.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index 2ce2685b..282053c7 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -333,7 +333,15 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) case FmtStereo: if(!(Device->Flags&DEVICE_WIDE_STEREO)) - chans = StereoMap; + { + /* HACK: Place the stereo channels at +/-90 degrees when using non- + * HRTF stereo output. This helps reduce the "monoization" caused + * by them panning towards the center. */ + if(Device->FmtChans == DevFmtStereo && !Device->Hrtf) + chans = StereoWideMap; + else + chans = StereoMap; + } else { chans = StereoWideMap; -- 2.11.4.GIT