commit c53762058b2d38fe68b1f538cb11c9b4081a97e2
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Tue Aug 31 19:59:24 2010 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Tue Aug 31 19:59:24 2010 +0000
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
---
opl/opl_sdl.c | 4 ++--
1 file 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];
}
}