dxx-rebirth/similar/arch/sdl
Kp 20a0166cf4 Avoid double-scaling sounds at start time
The SDL_mixer library has already been instructed, via Mix_Volume, to
scale the volume of sounds on all channels, by an amount based on
digi_volume.  There is no need to manipulate the effective distance of a
particular sound to further scale it by digi_volume.  Even if this
second scale was needed, it was done incorrectly, because it was only
applied when the sound was started, but not re-applied when the sound's
volume was updated due to positional changes.  As a result, any sound
which was updated would switch to an unscaled version.  Sounds which
were never updated, such as those attached to the viewer object, would
retain their original scaled volume.

Update the implementation of digi_mixer_set_channel_volume to call
Mix_SetDistance in the same way as digi_mixer_start_sound, for
readability and consistency.
2021-06-28 03:37:51 +00:00
..
digi.cpp Use enum class for sound angle parameter 2021-06-28 03:37:51 +00:00
digi_audio.cpp Use enum class for sound angle parameter 2021-06-28 03:37:51 +00:00
digi_mixer.cpp Avoid double-scaling sounds at start time 2021-06-28 03:37:51 +00:00
gr.cpp Add color_palette_index type alias, to note palette-related uint8_t 2020-07-16 02:31:04 +00:00
init.cpp Delegate PCX loading to SDL_image 2020-05-17 23:35:26 +00:00
jukebox.cpp Close descent.hog on exit 2021-06-28 03:37:49 +00:00