[Scummvm-tracker] [ScummVM :: Bugs] #7742: Request for game TeenAgent

ScummVM :: Bugs trac at scummvm.org
Sun Jul 26 23:53:51 UTC 2026


#7742: Request for game TeenAgent
----------------------------+--------------------------------
Reporter:  SF/rbusa         |       Owner:  (none)
    Type:  feature request  |      Status:  closed
Priority:  normal           |   Component:  Engine: TeenAgent
 Version:                   |  Resolution:
Keywords:                   |        Game:  TeenAgent
----------------------------+--------------------------------
Comment (by AlbertoVelazquez <50219414+AlbertoVelazquez@…>):

 In [changeset:"606f9dace5ffe9ae133cf9b9a1b40b9a50a9fef9" 606f9dac]:
 {{{#!CommitTicketReference repository=""
 revision="606f9dace5ffe9ae133cf9b9a1b40b9a50a9fef9"
 LIBRETRO: Pace audio generation against wall time, not frame count (#7742)

 audio_run() emits a fixed sample_rate/frame_rate samples per call. As
 it runs once per retro_run(), the output rate follows the achieved
 call rate rather than real time: a frontend running below frame_rate
 underproduces and the audio buffer underruns (crackle), while one
 running above overproduces. Video is already frame-locked; audio was
 not.

 Derive the per-call count from the wall-clock time elapsed since the
 previous call (cpu_features_get_time_usec()), so average production
 stays at sample_rate regardless of the retro_run() cadence. Bound the
 batch to the mix buffer size so a long stall (content load,
 save-state) cannot request a multi-second batch. The fractional-sample
 remainder is preserved, and a vsync-locked frontend gets the same
 per-frame count as before.
 }}}
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/7742#comment:5>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list