ref: 60226b1183f5537fdde881e34e863e21c7e24d7e
parent: 578a06c798f9b0d52f74d8bfc9258ef74a9bb6c9
author: Simon Howard <[email protected]>
date: Sun Aug 15 11:23:28 EDT 2010
Fix volume multiply; DBOPL now generating output. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1957
--- a/opl/opl_sdl.c
+++ b/opl/opl_sdl.c
@@ -176,8 +176,8 @@
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);
}
}