[Scummvm-tracker] [ScummVM :: Bugs] #12770: Blackwell Deception freezes after end of prologue sequence (AGS)
ScummVM :: Bugs
trac at scummvm.org
Sun Aug 1 19:14:24 UTC 2021
#12770: Blackwell Deception freezes after end of prologue sequence (AGS)
---------------------------+--------------------------
Reporter: Paolo86cripple | Owner: dreammaster
Type: defect | Status: closed
Priority: high | Component: Engine: AGS
Version: | Resolution: fixed
Keywords: bw4, freeze. | Game:
---------------------------+--------------------------
Changes (by dreammaster):
* owner: (none) => dreammaster
* status: new => closed
* resolution: => fixed
Comment:
LOL. I figured out the cause, and there were actually two problems. One I
fixed, and one I didn't.
The first was that the game goes to check the position of the background
music playback. But the engine does an explicit check to only return the
position if the sound is playing. In Debug mode, the character animations
was so slow that by the time they left the screen, the music had already
finished, so the get position check would always return 0, and it would be
stuck in the loop. I verified by switching to Release mode that they exit
quickly enough. I'm not going to change this, as it will be fast enough in
release mode, and there may be legitimate reasons not to return the
position for non-playing sounds.
The second problem reared it's head quickly thereafter. Turns out I was
returning the sound playback position in seconds rather than milliseconds
like it should. So even in Release mode it didn't think it was reaching
the desired point in the playback, and the music timed out without
changing rooms. That's now fixed.
--
Ticket URL: <https://bugs.scummvm.org/ticket/12770#comment:2>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list