diff options
author | Simon Howard | 2010-08-15 15:23:28 +0000 |
---|---|---|
committer | Simon Howard | 2010-08-15 15:23:28 +0000 |
commit | 60226b1183f5537fdde881e34e863e21c7e24d7e (patch) | |
tree | 720fbbe54df327869bc3b5155684b69e90349e59 | |
parent | 578a06c798f9b0d52f74d8bfc9258ef74a9bb6c9 (diff) | |
download | chocolate-doom-60226b1183f5537fdde881e34e863e21c7e24d7e.tar.gz chocolate-doom-60226b1183f5537fdde881e34e863e21c7e24d7e.tar.bz2 chocolate-doom-60226b1183f5537fdde881e34e863e21c7e24d7e.zip |
Fix volume multiply; DBOPL now generating output.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1957
-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 8b7d76e5..f6a3b229 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] / 65536); - buffer[i * 2 + 1] = (int16_t) (mix_buffer[i] / 65536); + buffer[i * 2] = (int16_t) (mix_buffer[i] * 2); + buffer[i * 2 + 1] = (int16_t) (mix_buffer[i] * 2); } } |