SCI32: Forward OLDDPCM8 parameter instead of using an if-else

Thanks @OmerMor for pointing out this improvement.
This commit is contained in:
Colin Snover 2017-06-18 11:38:19 -05:00
parent 87895b97f7
commit f3c452c31e

View File

@ -202,10 +202,8 @@ int SOLStream<STEREO, S16BIT, OLDDPCM8>::readBuffer(int16 *buffer, const int num
} else {
if (STEREO) {
deDPCM8Stereo(buffer, *_stream, bytesToRead, _dpcmCarry8.l, _dpcmCarry8.r);
} else if (OLDDPCM8) {
deDPCM8Mono<true>(buffer, *_stream, bytesToRead, _dpcmCarry8.l);
} else {
deDPCM8Mono<false>(buffer, *_stream, bytesToRead, _dpcmCarry8.l);
deDPCM8Mono<OLDDPCM8>(buffer, *_stream, bytesToRead, _dpcmCarry8.l);
}
}