Skip to content

Commit

Permalink
SCI32: Forward OLDDPCM8 parameter instead of using an if-else
Browse files Browse the repository at this point in the history
Thanks @OmerMor for pointing out this improvement.
  • Loading branch information
csnover committed Jun 19, 2017
1 parent 87895b9 commit f3c452c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions engines/sci/sound/decoders/sol.cpp
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit f3c452c

Please sign in to comment.