diff options
author | Chris Robinson <[email protected]> | 2018-08-29 07:13:54 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-08-29 07:13:54 -0700 |
commit | 827c66f4f6f1b84082e2ce77ab0dc82221e6adc7 (patch) | |
tree | 866ec69fcee3cbc7202168cacfbc374c3c2fe16b | |
parent | 21dc2c761d87592feb8b42a4556e2786f2e4581f (diff) |
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.
-rw-r--r-- | Alc/ALu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) |