Commits


stray newline


always call playlist_dropcurrent after main_play_song failures otherwise we keep garbage in the playing queue.


unify IMSG_ERR and IMSG_EOF handling IMSG_ERR needs a playlist_dropcurrent(), but otherwise is just the same as IMSG_EOF: the current song ended and we need to move forward. To unify, set current_song to NULL in playlist_dropcurrent, which make sense since right after it we're not playing anything.


remove siginfo handling was useful for debugging but now ther's the `status' command for it.


add a monitor functionality this pings all the "interesting" events to clients that issued a IMSG_CTL_MONITOR, except to the one that generated such event.


drop AMUSED_VERSION and the undocumented -V flag


show repeat one/all status in `amused status' output


handle eof wrt repeat_one


keep current song in a dedicated variable playlist.songs[play_off] is not a good representation for the current playing song after all. After a `load' command, or a flush request, the play_off changes but we're still playing the "old" song. This saves the current song in a dedicated variable that's updated upon playlist_advance and playlist_previous, thus givin a more accurate view.


typo


add `jump' subcommand to play the first matching


add IMSG_CTL_BEGIN/COMMIT to load a playlist in a transaction


fmt


implement main_playlist_resume to resume after stop


preserve -s path when spawning the daemon