summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-10-22 21:07:35 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-10-22 21:07:35 +0000
commitbdf558ca53f293aa112c36b7662a092abdc9f5d5 (patch)
treef3acccdb3281a66d8f2d4996d93cca05f053d81c /apps/pcmbuf.c
parent6f9a84c2b872c1a7c5e73869a6e0f2a0353b3efa (diff)
Fixed the voice codec when no audio is playing. Now attenuating audio
instead of making the voice louder. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7653 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index b67e889a95..8ab4ffaae1 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -652,7 +652,7 @@ void pcmbuf_mix(char *buf, long length)
length /= 2;
while (length-- > 0) {
- obuf[mixpos] = MIN(MAX(obuf[mixpos] + *ibuf*4, -32768), 32767);
+ obuf[mixpos] = MIN(MAX(obuf[mixpos]/4 + *ibuf, -32768), 32767);
ibuf++;
mixpos++;