summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2010-08-15 15:23:28 +0000
committerSimon Howard2010-08-15 15:23:28 +0000
commit60226b1183f5537fdde881e34e863e21c7e24d7e (patch)
tree720fbbe54df327869bc3b5155684b69e90349e59
parent578a06c798f9b0d52f74d8bfc9258ef74a9bb6c9 (diff)
downloadchocolate-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.c4
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);
}
}