Files
KytyPS5/src
6d4mandnmzik 7855c980cb audio: keep blocking AudioOut writes on an even cadence (#822)
* audio: keep blocking AudioOut writes on an even cadence

The blocking queue check only enforced a minimum cushion, so the guest
could queue a burst of buffers and then be blocked for the whole cushion.
Measured on PPSA03647, intervals between guest writes alternated between
0 ms and ~44 ms instead of one 5.33 ms buffer period, while the average
rate stayed correct at 48000 frames/s. Mixers that run on a timer cannot
track that cadence and the music turns slow and warbling.

Keep the cushion as-is, but also hold writes to the buffer period, and
skip that wait when the stream is running low so it cannot underrun.

Intervals become ~5.4 ms with microsecond-level deviation and the menu
music plays correctly.

* audio: reuse output clock after SDL queue priming

---------

Co-authored-by: nmzik <Nmzik@mail.ru>
2026-09-25 12:33:01 +04:00
..
2026-09-23 17:22:15 +04:00
2026-07-16 10:21:41 +02:00
2026-07-16 10:21:41 +02:00
2026-07-16 10:21:41 +02:00
2026-07-16 10:21:41 +02:00
2026-07-21 07:37:52 +02:00
2026-09-15 14:09:24 +04:00
2026-09-20 17:16:19 +04:00
2026-09-17 20:35:36 +04:00