SDL/src
Sam Lantinga d2c2ac4b80 Fixed bug #292
I might be on crack here.

It looks like SDL_ConvertMono() in src/audio/SDL_audiocvt.c adds the left and
right channels of a stereo stream together, and clamps the new mono channel if
it would overflow.

Shouldn't it be dividing by 2 to average the two sample points instead of
clamping? Otherwise the mono sample point's volume doubles in the conversion.
This would also make the conversion faster, as it replaces two branches per
sample frame with a bitwise shift.

--ryan.
2006-09-24 15:56:36 +00:00
..
audio Fixed bug #292 2006-09-24 15:56:36 +00:00
cdrom Use correct function to free allocated mem 2006-09-05 19:32:35 +00:00
cpuinfo SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
events MacOS Classic is no longer supported. 2006-08-10 14:54:23 +00:00
file MacOS Classic is no longer supported. 2006-08-10 14:54:23 +00:00
hermes Added source color and alpha modulation support. 2006-08-28 03:17:39 +00:00
joystick Add teamtap support 2006-09-16 17:13:41 +00:00
loadso MacOS Classic is no longer supported. 2006-08-10 14:54:23 +00:00
main MacOS Classic is no longer supported. 2006-08-10 14:54:23 +00:00
stdlib Implemented blend modes in the D3D renderer 2006-07-19 05:03:21 +00:00
thread SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
timer MacOS Classic is no longer supported. 2006-08-10 14:54:23 +00:00
video 2006-09-23 23:15:56 +00:00
SDL_compat.c Fixed bug #329 2006-09-23 22:51:37 +00:00
SDL_error_c.h SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
SDL_error.c SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
SDL_fatal.c SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
SDL_fatal.h SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
SDL.c Look at environment variables in SDL_VideoInit() and SDL_AudioInit() 2006-07-15 19:30:18 +00:00