Fixed DUMB surround volume level, which was too loud after the pan law change
parent
a4a8a8cc63
commit
19a8e2d954
|
@ -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))) {
|
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));
|
span = (pan - (32<<8)) * sigdata->pan_separation * (1.0f / ((32<<8) * 128));
|
||||||
vol = 0.5f;
|
if (!IT_IS_SURROUND_SHIFTED(pan)) vol = 0.5f * (1.0f - span);
|
||||||
if (!IT_IS_SURROUND_SHIFTED(pan)) vol *= 1.0f - span;
|
else vol = 0.25f;
|
||||||
playing->float_volume[0] = vol;
|
playing->float_volume[0] = vol;
|
||||||
vol = -vol;
|
vol = -vol;
|
||||||
if (!IT_IS_SURROUND_SHIFTED(pan)) vol += 1.0f;
|
if (!IT_IS_SURROUND_SHIFTED(pan)) vol += 1.0f;
|
||||||
|
|
Loading…
Reference in New Issue