Changeset - r25125:6fc9a3029944
[Not reviewed]
master
0 1 0
Peter Nelson - 3 years ago 2021-04-04 18:13:08
peter1138@openttd.org
Fix: Allow full sample range for 16-bit audio.

Clamping each sample value to half the available range could cause
unnecessary premature clipping with lots of sounds playing. This change
does not affect the actual volume level.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/mixer.cpp
Show inline comments
 
@@ -46,7 +46,7 @@ static MxStreamCallback _music_stream = 
 
 * stops overflowing when too many sounds are played at the same time, which
 
 * causes an even worse sound quality.
 
 */
 
static const int MAX_VOLUME = 128 * 128;
 
static const int MAX_VOLUME = 32767;
 

	
 
/**
 
 * Perform the rate conversion between the input and output.
0 comments (0 inline, 0 general)