aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-07-17 17:16:19 -0500
committerrichiesams2013-08-04 13:32:23 -0500
commit03c871ff3025457067bb504af0799c901498253e (patch)
tree6575e647309cb9abcb00b716e449f38cb2a870b6
parentd771b615e050ecd13e9da73111230ec16158beb2 (diff)
downloadscummvm-rg350-03c871ff3025457067bb504af0799c901498253e.tar.gz
scummvm-rg350-03c871ff3025457067bb504af0799c901498253e.tar.bz2
scummvm-rg350-03c871ff3025457067bb504af0799c901498253e.zip
ZVISION: Convert _stereo to a byte since it is used for a bitwise and
-rw-r--r--engines/zvision/zork_raw.cpp5
-rw-r--r--engines/zvision/zork_raw.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/zvision/zork_raw.cpp b/engines/zvision/zork_raw.cpp
index 140e6a532b..68bb25dd48 100644
--- a/engines/zvision/zork_raw.cpp
+++ b/engines/zvision/zork_raw.cpp
@@ -54,9 +54,12 @@ const int32 RawZorkStream::_amplitudeLookupTable[89] = {0x0007, 0x0008, 0x0009,
RawZorkStream::RawZorkStream(uint32 rate, bool stereo, DisposeAfterUse::Flag disposeStream, Common::SeekableReadStream *stream)
: _rate(rate),
- _stereo(stereo),
+ _stereo(0),
_stream(stream, disposeStream),
_endOfData(false) {
+ if (stereo)
+ _stereo = 1;
+
_lastSample[0].index = 0;
_lastSample[0].sample = 0;
_lastSample[1].index = 0;
diff --git a/engines/zvision/zork_raw.h b/engines/zvision/zork_raw.h
index 8d4670e26c..6d25d197ee 100644
--- a/engines/zvision/zork_raw.h
+++ b/engines/zvision/zork_raw.h
@@ -73,7 +73,7 @@ private:
Audio::Timestamp _playtime; // Calculated total play time
Common::DisposablePtr<Common::SeekableReadStream> _stream; // Stream to read data from
bool _endOfData; // Whether the stream end has been reached
- bool _stereo;
+ byte _stereo;
/**
* Holds the frequency and index from the last sample