mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
588dd8c48d
Defence-in-depth for #1094: the device-changed/-reset handlers restarted playback based on the UI `isPlaying` flag alone, which can be stale or desynced at the moment of a device change. Gate the restart on the engine-paused flag as well (`isPlaying && !getIsAudioPaused()`), so a paused engine never auto-restarts regardless of how `isPlaying` got set; when paused it just resets for the cold path. Adds a regression test.