From 827c66f4f6f1b84082e2ce77ab0dc82221e6adc7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 29 Aug 2018 07:13:54 -0700 Subject: Widen the plain stereo width Now full right and left is +-60 degrees instead of +-30. This should help create a smoother panning for a sound moving in front for plain stereo output (surround sound and HRTF are not changed). Multi-channel sources are also not affected by this change. The stereo channel defaults of +-pi/6 (30 degrees) still correspond to full left/right panning. This is an unfortuante discrepancy, but is necessary for AL_EXT_STEREO_ANGLES to work. --- Alc/ALu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index d033c0c4..0711d611 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -652,7 +652,7 @@ static void CalcPanningAndFilters(ALvoice *voice, const ALfloat Azi, const ALflo * moved to +/-90 degrees for direct right and left speaker * responses. */ - CalcAngleCoeffs((Device->Render_Mode==StereoPair) ? ScaleAzimuthFront(Azi, 3.0f) : Azi, + CalcAngleCoeffs((Device->Render_Mode==StereoPair) ? ScaleAzimuthFront(Azi, 1.5f) : Azi, Elev, Spread, coeffs); /* NOTE: W needs to be scaled by sqrt(2) due to FuMa normalization. */ @@ -897,7 +897,7 @@ static void CalcPanningAndFilters(ALvoice *voice, const ALfloat Azi, const ALflo /* Calculate the directional coefficients once, which apply to all * input channels. */ - CalcAngleCoeffs((Device->Render_Mode==StereoPair) ? ScaleAzimuthFront(Azi, 3.0f) : Azi, + CalcAngleCoeffs((Device->Render_Mode==StereoPair) ? ScaleAzimuthFront(Azi, 1.5f) : Azi, Elev, Spread, coeffs); for(c = 0;c < num_channels;c++) -- cgit v1.2.3