Opened 9 months ago

Last modified 9 months ago

#12075 pending defect (pending)

PETKA: Audio desync in cutscenes

Reported by: Tkachov Owned by: whiterandrek
Priority: normal Component: Engine: Petka
Version: Keywords: audio, desync
Cc: Game: Petka 2

Description

I've noticed that in the first cutscene of Red Comrades 2, but I think this might happen in other cutscenes and in first game as well.

Video demonstration: https://youtu.be/hK0OmmjceT8 (first 50 seconds are in the original game, the rest is in ScummVM). The most noticable moments are when the glass shutters (0:25 vs 1:15) and when three metal pieces appear when hero's falling from the sky (0:36 vs 1:26).

You can also see a "lag" between switching screens in this cutscene, which seems to be not there in the original game. I'm not sure, but could that be the reason of the delayed audio?


ScummVM 2.3.0git11899-g3fb4d67b4e (Jan 16 2021 05:21:57)
Windows 10 version 20H2 64-bit
Red Comrades 2 (petka2)

To reproduce:

  • start the game;
  • <in the first cutscene (after heroes talk in their hut) you could see how animations happen before corresponding audio>.

Change History (2)

comment:1 by Tkachov, 9 months ago

If you unpack .str archives into the game folder, the screen loads as fast as in the original game, and there is no audio desync in this cutscene.

I actually think the original game might've been unpacking its archives to some temp directory and loading those files instead of extracting each file from .str when needed.

comment:2 by whiterandrek, 9 months ago

Owner: set to whiterandrek
Resolution: pending
Status: newpending

The engine doesn’t unpack archives, but I know that ScummVM loads entire wav in memory, but I don’t think this is a problem.

I probably know where the problem is

Note: See TracTickets for help on using tickets.