mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 03:24:50 +00:00
SCI32: Forward OLDDPCM8 parameter instead of using an if-else
Thanks @OmerMor for pointing out this improvement.
This commit is contained in:
parent
87895b97f7
commit
f3c452c31e
@ -202,10 +202,8 @@ int SOLStream<STEREO, S16BIT, OLDDPCM8>::readBuffer(int16 *buffer, const int num
|
|||||||
} else {
|
} else {
|
||||||
if (STEREO) {
|
if (STEREO) {
|
||||||
deDPCM8Stereo(buffer, *_stream, bytesToRead, _dpcmCarry8.l, _dpcmCarry8.r);
|
deDPCM8Stereo(buffer, *_stream, bytesToRead, _dpcmCarry8.l, _dpcmCarry8.r);
|
||||||
} else if (OLDDPCM8) {
|
|
||||||
deDPCM8Mono<true>(buffer, *_stream, bytesToRead, _dpcmCarry8.l);
|
|
||||||
} else {
|
} else {
|
||||||
deDPCM8Mono<false>(buffer, *_stream, bytesToRead, _dpcmCarry8.l);
|
deDPCM8Mono<OLDDPCM8>(buffer, *_stream, bytesToRead, _dpcmCarry8.l);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user