ZVISION: Fix logic concerning whether a stream is packed or not

It was accidentally returning a raw stream for a ZorkStream and a ZorkStream for a raw
This commit is contained in:
richiesams 2013-07-17 17:19:59 -05:00
parent 134f8fda17
commit e897a1bb2a

View File

@ -178,13 +178,14 @@ Audio::AudioStream *makeRawZorkStream(const Common::String &filePath, ZVision *e
}
if (soundParams.packed) {
return makeRawZorkStream(wrapBufferedSeekableReadStream(file, 2048, DisposeAfterUse::YES), soundParams.rate, soundParams.stereo, DisposeAfterUse::YES);
} else {
byte flags = 0;
if (soundParams.stereo)
flags |= Audio::FLAG_STEREO;
return Audio::makeRawStream(file, soundParams.rate, flags, DisposeAfterUse::YES);
}
else
return makeRawZorkStream(wrapBufferedSeekableReadStream(file, 2048, DisposeAfterUse::YES), soundParams.rate, soundParams.stereo, DisposeAfterUse::YES);
}
} // End of namespace ZVision