[Scummvm-tracker] [ScummVM :: Bugs] #15094: crash at the hotel
ScummVM :: Bugs
trac at scummvm.org
Sat Apr 27 17:20:18 UTC 2024
#15094: crash at the hotel
-----------------------+-----------------------------
Reporter: theMealena | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: Sword1
Version: | Resolution:
Keywords: crash | Game: Broken Sword 1
-----------------------+-----------------------------
Comment (by theMealena):
in source file scummvm/audio/decoders/raw.cpp from line 205 :
{{{
const bool isStereo = (flags & Audio::FLAG_STEREO) != 0;
const int bytesPerSample = (flags & Audio::FLAG_24BITS ? 3 :
(flags & Audio::FLAG_16BITS ? 2 : 1));
const bool isUnsigned = (flags & Audio::FLAG_UNSIGNED) != 0;
const bool isLE = (flags & Audio::FLAG_LITTLE_ENDIAN) !=
0;
assert(stream->size() % (bytesPerSample * (isStereo ? 2 : 1)) ==
0);
}}}
--
Ticket URL: <https://bugs.scummvm.org/ticket/15094#comment:2>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list