[Scummvm-tracker] [ScummVM :: Bugs] #11296: BLADERUNNER: Investigate audio video desynch issues

ScummVM :: Bugs trac at scummvm.org
Sun May 30 19:14:54 UTC 2021


#11296: BLADERUNNER: Investigate audio video desynch issues
-------------------------------+----------------------------------
Reporter:  antoniou79          |       Owner:  antoniou79
    Type:  defect              |      Status:  pending
Priority:  normal              |   Component:  Engine: Bladerunner
 Version:                      |  Resolution:  pending
Keywords:  desynch, cutscenes  |        Game:  Blade Runner
-------------------------------+----------------------------------
Changes (by antoniou79):

 * status:  new => pending
 * resolution:   => pending

Comment:

 I just pushed a possible fix for one of the causes of audio-video desynch.

 This fix addresses the situation, when moving the ScummVM window around,
 in which case the video stops immediately but the audio keeps playing
 until the stream queue is exhausted (audio stream queue stores audio ahead
 of time, up to 15 frames). Thus, upon "resuming" (after having stopped
 moving the window), the video would remain behind the audio.

 With this fix, the video will catch up with the audio first, before
 resuming queuing of the audio again. This does mean that in order for the
 video to catch up, the audio will have to be silent for the frames that it
 already has "played".

 https://github.com/scummvm/scummvm/commit/772a38588c6712fdd89076ad49b0d03bacdaca18

 I still want to look into the video decoder code too, to see if we can
 optimize it for speed, so that it can run faster on slower devices, but
 perhaps this ticket can be closed for now.

 I will keep it open for another week or so, pending feedback.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/11296#comment:9>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list