From d63b8cefd6cabda00491dc5c7f25dd7d1e644410 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 30 Jul 2014 00:04:15 +0000 Subject: [PATCH] gb reports that this greatly improves stereo ogg playback quality. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4713 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/snd_ov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/snd_ov.c b/engine/client/snd_ov.c index dd587a11a..862a2ee24 100644 --- a/engine/client/snd_ov.c +++ b/engine/client/snd_ov.c @@ -224,7 +224,7 @@ sfxcache_t *OV_DecodeSome(struct sfx_s *sfx, struct sfxcache_s *buf, int start, dec->srcchannels, snd_linearresample_stream.ival); - bytesread = (int)floor(bytesread / scale) & ~0x1; + bytesread = (int)floor(bytesread / scale) & ~(2 * dec->srcchannels - 1); } dec->decodedbytecount += bytesread;