aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorColin Snover2017-06-18 11:38:19 -0500
committerColin Snover2017-06-18 21:42:59 -0500
commitf3c452c31efe6b5e140b2178654d107bc0e7ef2e (patch)
treecf8913c9cff4b8471dfc39dffc44473a4f92465d /engines/sci
parent87895b97f76488d531c50c05a25aaabc4d73aaf3 (diff)
downloadscummvm-rg350-f3c452c31efe6b5e140b2178654d107bc0e7ef2e.tar.gz
scummvm-rg350-f3c452c31efe6b5e140b2178654d107bc0e7ef2e.tar.bz2
scummvm-rg350-f3c452c31efe6b5e140b2178654d107bc0e7ef2e.zip
SCI32: Forward OLDDPCM8 parameter instead of using an if-else
Thanks @OmerMor for pointing out this improvement.
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sound/decoders/sol.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sci/sound/decoders/sol.cpp b/engines/sci/sound/decoders/sol.cpp
index 290898fabf..d060faefb3 100644
--- a/engines/sci/sound/decoders/sol.cpp
+++ b/engines/sci/sound/decoders/sol.cpp
@@ -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);
}
}