aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* audio: open the output at the track's rate instead of pw-alsa's 44100salmonik6 days1-0/+35
| | | | | | | | | | | | cpal asks the ALSA "default" PCM for its default config and pipewire-alsa answers 44.1 kHz no matter what the graph runs at, so 48 kHz material was resampled down to 44.1 in our linear resampler and then back up to 48 by PipeWire. The stream now opens at the track's own rate (when the device supports it), which keeps our resampler out of the path and leaves the conversion to PipeWire's polyphase one. The new `sample_rate` setting forces a fixed rate instead ("auto" by default), for anyone who would rather match the graph exactly.
* config: parse the config once and reuse it until the file changessalmonik6 days1-17/+90
| | | | | | | | | | | Every command, status line and notification went through Config::load, which reads *and* rewrites config.toml, so `rsp status` alone touched the file on each call. The daemon now keeps a parsed copy and only stats the file to notice outside edits, so `rsp settings set` still takes effect immediately. Config::save refreshes the cached copy too, and Config::config_path is shared by the loader and the cache.
* Make daemon socket/PID paths environment-independent; fix rc service HOMEsalmon2026-08-091-4/+34
|
* add licensingsalmonik2026-05-261-0/+7
|
* Fix metadata extraction for symphonia 0.6 and add Albums shuffle modesalmonik2026-05-221-1/+1
|
* Add display_format config, fix restart command, clean up config codesalmonik2026-05-111-34/+152
| | | | | | | | | | | - Add display_format option with get/set/list/unset for customizing track display - Add Track::format() supporting $ARTIST, $ALBUM, $TRACK variables - Update queue, status, notifications to use display_format - Fix restart command using wrong subcommand 'start' -> 'start-daemon' - Remove socket_path from config (now computed at runtime from XDG_RUNTIME_DIR) - Consolidate duplicate save() and save_all() into single save() - Fix redundant .clone().clone() in config.rs - Add todo item for caching config in daemon hot paths
* Add dev/release config separation and volume query commandsalmonik2026-05-051-6/+12
|
* fix(daemon): robust auto-advance; ensure next track starts even if playback ↵salmonik2026-05-051-0/+180
fails