diff options
author | Simon Howard | 2010-08-31 19:59:24 +0000 |
---|---|---|
committer | Simon Howard | 2010-08-31 19:59:24 +0000 |
commit | c53762058b2d38fe68b1f538cb11c9b4081a97e2 (patch) | |
tree | 820da2378208729abcf456d08ecc164408a1d155 | |
parent | 64918568eee62c73cbb87aa1bd68e191f19a4af3 (diff) | |
download | chocolate-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.c | 4 |
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]; } } |