summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2010-08-31 19:59:24 +0000
committerSimon Howard2010-08-31 19:59:24 +0000
commitc53762058b2d38fe68b1f538cb11c9b4081a97e2 (patch)
tree820da2378208729abcf456d08ecc164408a1d155
parent64918568eee62c73cbb87aa1bd68e191f19a4af3 (diff)
downloadchocolate-doom-c53762058b2d38fe68b1f538cb11c9b4081a97e2.tar.gz
chocolate-doom-c53762058b2d38fe68b1f538cb11c9b4081a97e2.tar.bz2
chocolate-doom-c53762058b2d38fe68b1f538cb11c9b4081a97e2.zip
Don't double OPL sample values, as it causes horrible things to happen
with the Heretic title screen music. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1988
-rw-r--r--opl/opl_sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opl/opl_sdl.c b/opl/opl_sdl.c
index f6a3b229..5059fb5e 100644
--- a/opl/opl_sdl.c
+++ b/opl/opl_sdl.c
@@ -176,8 +176,8 @@ static void FillBuffer(int16_t *buffer, unsigned int nsamples)
for (i=0; i<nsamples; ++i)
{
- buffer[i * 2] = (int16_t) (mix_buffer[i] * 2);
- buffer[i * 2 + 1] = (int16_t) (mix_buffer[i] * 2);
+ buffer[i * 2] = (int16_t) mix_buffer[i];
+ buffer[i * 2 + 1] = (int16_t) mix_buffer[i];
}
}