Panning and volume
|Indiana Jones 4
I didn't realize it until I started replaying some games in preparation for 0.6.0, but sound effects are softer in the current version of ScummVM than they are in earlier versions. This is probably because of the panning. When a sound isn't panned, vol_l and vol_r won't ever exceed 127, so sound effects are muted, even when they should be playing at full blast.
The more I think about that, the more wrong it seems. As an experiment, the attached patch causes the panning to affect at most one channel at a time. I was afraid that this would affect the perceived volume badly, but it sounds pretty ok to me.
Ticket imported from: #886786. Ticket imported from: patches/422.