ZVISION: Convert _stereo to a byte since it is used for a bitwise and

This commit is contained in:
richiesams 2013-07-17 17:16:19 -05:00
parent d771b615e0
commit 03c871ff30
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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