mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 18:24:59 +00:00
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:
parent
134f8fda17
commit
e897a1bb2a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user