Files
yattee/Yattee/Services
Arkadiusz Fal 913b61980d Reload the avfoundation audio output when it restarts while paused
The heat in the iOS 27.2 TestFlight report (~36% CPU for 85 minutes with
playback paused) started right after an audio route change while paused:
mpv's ao_avfoundation logged "restarting due to system notification"
and an unnamed thread went to ~36% immediately, still in the foreground.
Its restart handler calls stop() then start() regardless of pause state;
start() sets the synchronizer rate to 1 and requests media data, but
paused mpv supplies no samples, so the empty renderer re-requests in a
tight loop and the running renderer keeps iOS from suspending the app.

When that log line arrives and mpv is paused, issue ao-reload so the AO
is rebuilt paused. (The display link guard in the previous commit did not
reproduce the spin when tested on a device.)
2026-10-31 11:44:27 +01:00
..
2026-04-18 20:37:24 +02:00
2026-04-18 20:37:24 +02:00