Double volume of DOSBox' OPL emulator, like DOSBox does too.

svn-id: r41014
This commit is contained in:
Johannes Schickel 2009-05-29 17:59:07 +00:00
parent b43094cec0
commit 0ba9e14ec9

View File

@ -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
}