Fixed DUMB surround volume level, which was too loud after the pan law change

CQTexperiment
Chris Moeller 2013-11-07 15:06:23 -08:00
parent a4a8a8cc63
commit 19a8e2d954
1 changed files with 2 additions and 2 deletions

View File

@ -3994,8 +3994,8 @@ static void playing_volume_setup(DUMB_IT_SIGRENDERER * sigrenderer, IT_PLAYING *
if ((sigrenderer->n_channels >= 2) && (sigdata->flags & IT_STEREO) && (sigrenderer->n_channels != 3 || !IT_IS_SURROUND_SHIFTED(pan))) {
span = (pan - (32<<8)) * sigdata->pan_separation * (1.0f / ((32<<8) * 128));
vol = 0.5f;
if (!IT_IS_SURROUND_SHIFTED(pan)) vol *= 1.0f - span;
if (!IT_IS_SURROUND_SHIFTED(pan)) vol = 0.5f * (1.0f - span);
else vol = 0.25f;
playing->float_volume[0] = vol;
vol = -vol;
if (!IT_IS_SURROUND_SHIFTED(pan)) vol += 1.0f;