mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
1c2aa79e29
Stream switch: skip entirely when hi_res_enabled=false. Previously the engine compared 44100 vs. device-default 48000 Hz and re-opened the device on every track start — unnecessary IPC + PipeWire reconfigure in safe mode. MSS buffer: 512 KB in standard mode (was 4 MB). For in-memory MP3/AAC the large buffer caused eager allocation competing with playback startup. 4 MB is kept only for hi-res (high-bitrate FLAC benefits from fewer reads). ThreadPriority: no longer set Max at audio-stream-thread startup. Max is now applied only when a hi-res reopen is requested, keeping the scheduler budget for the actual decode threads during standard playback. audio_preload: 8 s throttle delay + gen guard so background pre-fetch does not compete with the decode/sink-feed cycle of the just-started track. needs_prefill: now gated on hi_res_enabled to make the condition explicit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>