diff options
author | frosch <frosch@openttd.org> | 2008-07-15 17:13:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-07-15 17:13:50 +0000 |
commit | e190ab858db71ca36795b09931fbd9743cc0e0da (patch) | |
tree | 8158afc565ca7797e0fec87a692f27a15c6420aa | |
parent | ba53aa91a1127c7f28fb25c8b2253eb6e271e76a (diff) | |
download | openttd-e190ab858db71ca36795b09931fbd9743cc0e0da.tar.xz |
(svn r13706) -Fix (r13695): Small typo.
-rw-r--r-- | src/mixer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixer.cpp b/src/mixer.cpp index 3e9b1c5cb..41d49043a 100644 --- a/src/mixer.cpp +++ b/src/mixer.cpp @@ -60,14 +60,14 @@ static void mix_int8_to_int16(MixerChannel *sc, int16 *buffer, uint samples) /* Special case when frac_speed is 0x10000 */ do { buffer[0] = Clamp(buffer[0] + (*b * volume_left >> 8), -MAX_VOLUME, MAX_VOLUME); - buffer[0] = Clamp(buffer[1] + (*b * volume_right >> 8), -MAX_VOLUME, MAX_VOLUME); + buffer[1] = Clamp(buffer[1] + (*b * volume_right >> 8), -MAX_VOLUME, MAX_VOLUME); b++; buffer += 2; } while (--samples > 0); } else { do { buffer[0] = Clamp(buffer[0] + (*b * volume_left >> 8), -MAX_VOLUME, MAX_VOLUME); - buffer[0] = Clamp(buffer[1] + (*b * volume_right >> 8), -MAX_VOLUME, MAX_VOLUME); + buffer[1] = Clamp(buffer[1] + (*b * volume_right >> 8), -MAX_VOLUME, MAX_VOLUME); buffer += 2; frac_pos += frac_speed; b += frac_pos >> 16; |