diff options
author | Johannes Schickel | 2009-05-29 17:59:07 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-29 17:59:07 +0000 |
commit | 0ba9e14ec9ddcf6bafa4b62ea5232cef0ffbfd0a (patch) | |
tree | 85ce28b4bf0f35ad64907656ad31bb7f492c93ad /sound/softsynth/opl | |
parent | b43094cec05e639b43e9e14ad7a9001b9c5d7fac (diff) | |
download | scummvm-rg350-0ba9e14ec9ddcf6bafa4b62ea5232cef0ffbfd0a.tar.gz scummvm-rg350-0ba9e14ec9ddcf6bafa4b62ea5232cef0ffbfd0a.tar.bz2 scummvm-rg350-0ba9e14ec9ddcf6bafa4b62ea5232cef0ffbfd0a.zip |
Double volume of DOSBox' OPL emulator, like DOSBox does too.
svn-id: r41014
Diffstat (limited to 'sound/softsynth/opl')
-rw-r--r-- | sound/softsynth/opl/opl_impl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/softsynth/opl/opl_impl.h b/sound/softsynth/opl/opl_impl.h index 5c68baa485..5b897e12a7 100644 --- a/sound/softsynth/opl/opl_impl.h +++ b/sound/softsynth/opl/opl_impl.h @@ -1433,20 +1433,20 @@ void adlib_getsample(Bit16s* sndptr, Bits numsamples) { if (adlibreg[0x105]&1) { // convert to 16bit samples (stereo) for (i=0;i<endsamples;i++) { - clipit16(outbufl[i],sndptr++); - clipit16(outbufr[i],sndptr++); + clipit16(outbufl[i] * 2,sndptr++); + clipit16(outbufr[i] * 2,sndptr++); } } else { // convert to 16bit samples (mono) for (i=0;i<endsamples;i++) { - clipit16(outbufl[i],sndptr++); - clipit16(outbufl[i],sndptr++); + clipit16(outbufl[i] * 2,sndptr++); + clipit16(outbufl[i] * 2,sndptr++); } } #else // convert to 16bit samples for (i=0;i<endsamples;i++) - clipit16(outbufl[i],sndptr++); + clipit16(outbufl[i] * 2,sndptr++); #endif } |