<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rsplayer/src/daemon.rs, branch main</title>
<subtitle>Daemon focused CLI music player
</subtitle>
<id>https://git.2137697.xyz/rsplayer/atom?h=main</id>
<link rel='self' href='https://git.2137697.xyz/rsplayer/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/'/>
<updated>2026-11-02T12:28:23Z</updated>
<entry>
<title>audio: open the output at the track's rate instead of pw-alsa's 44100</title>
<updated>2026-11-02T12:28:23Z</updated>
<author>
<name>salmonik</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-11-02T12:28:23Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=6e62ee4057b8ea3144f2f4df85e5d56c37c8fd72'/>
<id>urn:sha1:6e62ee4057b8ea3144f2f4df85e5d56c37c8fd72</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>config: parse the config once and reuse it until the file changes</title>
<updated>2026-11-02T12:22:44Z</updated>
<author>
<name>salmonik</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-11-02T12:22:44Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=2c044de38f6adcfbd3cc64eb9fa55e67d61e6f94'/>
<id>urn:sha1:2c044de38f6adcfbd3cc64eb9fa55e67d61e6f94</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>seek: jump within the current track from the CLI and over MPRIS</title>
<updated>2026-11-02T12:19:49Z</updated>
<author>
<name>salmonik</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-11-02T12:19:49Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=50cd2a17734dee4c4739112261fc40974cce409a'/>
<id>urn:sha1:50cd2a17734dee4c4739112261fc40974cce409a</id>
<content type='text'>
`rsp seek 1:30`, `rsp seek +15`, `rsp seek -30` and `rsp seek` (print the
position) drive a new AudioCommand that seeks the format reader, resets the
decoder and drops the buffered samples, so the cpal stream keeps running and
playback continues from the new spot.

MPRIS gets a working Seek/SetPosition, reports CanSeek, and the state watcher
now emits Seeked when the playhead jumps (not just on track changes), which is
what clients need to move their progress bar after an external seek.

`rsp status` also reports the position (and duration when known) and says
Paused instead of Stopped when a track is loaded but not playing.
</content>
</entry>
<entry>
<title>state: persist the queue and pick up where playback stopped</title>
<updated>2026-11-02T12:12:48Z</updated>
<author>
<name>salmonik</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-11-02T12:12:48Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=863b4017714130f042f993e7c9d0f3f8adee22bf'/>
<id>urn:sha1:863b4017714130f042f993e7c9d0f3f8adee22bf</id>
<content type='text'>
The queue, its shuffle order and whether playback was running are written to
~/.local/state/rsplayer/state.json whenever they change, and on shutdown, then
restored at daemon start. Tracks that disappeared from disk are dropped
instead of failing on play.

`rsp resume`/`rsp toggle` now start the restored track when nothing is loaded
into the engine yet, which is the state right after a restart with a queue
that was paused.
</content>
</entry>
<entry>
<title>lyrics: cache lrclib results, redraw cleanly and show a now playing header</title>
<updated>2026-11-02T12:02:11Z</updated>
<author>
<name>salmonik</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-11-02T12:02:11Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=78d6464c02f528104a35a12054191d1e26862b97'/>
<id>urn:sha1:78d6464c02f528104a35a12054191d1e26862b97</id>
<content type='text'>
Plain and unavailable lyrics now wait for a track change instead of
exiting, synced frames erase the previous region so shrinking frames do
not leave stale text, and lrclib lookups are cached next to the track.
</content>
</entry>
<entry>
<title>fix a bug where adding track using `now` when shuffle is on does not work as expected</title>
<updated>2026-08-12T00:56:18Z</updated>
<author>
<name>salmon</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-08-12T00:56:18Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=8ec85d39c55769c564298782a51c6ec25dd6ba9f'/>
<id>urn:sha1:8ec85d39c55769c564298782a51c6ec25dd6ba9f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make daemon socket/PID paths environment-independent; fix rc service HOME</title>
<updated>2026-08-09T21:53:47Z</updated>
<author>
<name>salmon</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-08-09T21:53:47Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=ce1b4011d409997b10ca205f459cedcb6b292bd7'/>
<id>urn:sha1:ce1b4011d409997b10ca205f459cedcb6b292bd7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Actual message when daemon could not be found</title>
<updated>2026-08-09T21:20:23Z</updated>
<author>
<name>salmon</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-08-09T21:20:23Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=b9ff96f24e59ba781f252e0de2f2136b19b4f0da'/>
<id>urn:sha1:b9ff96f24e59ba781f252e0de2f2136b19b4f0da</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Relative volume via prefixing/suffixing with +/-</title>
<updated>2026-07-30T17:28:23Z</updated>
<author>
<name>salmonik</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-07-30T17:28:23Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=cf0f408fb5d60d86c1141e859055f1decc3a1373'/>
<id>urn:sha1:cf0f408fb5d60d86c1141e859055f1decc3a1373</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix synchronous HTTP calls</title>
<updated>2026-07-30T16:37:52Z</updated>
<author>
<name>salmonik</name>
<email>salmonik@tuta.io</email>
</author>
<published>2026-07-30T16:37:52Z</published>
<link rel='alternate' type='text/html' href='https://git.2137697.xyz/rsplayer/commit/?id=da0251d55d3902c90967b36b7a5441404bdf24ef'/>
<id>urn:sha1:da0251d55d3902c90967b36b7a5441404bdf24ef</id>
<content type='text'>
</content>
</entry>
</feed>
