Commits


bump date


don't try to match the prev/next song; been broken since tx in load was added originally i tried to match the previous or next song in the playing queue after a load command if the current song was not matched. The idea is ok-ish, but the implementation was broken and become a no-op after some recent refactoring in that area.


mention the load matching heuristic in the manpage


pledge audio too while for my particular use-case this has always worked with only "stdio recvfd", sio_open(3) mentions that if no further sio_open calls are made all pledges can be dropped except for "audio", so let's keep it.


no point in returning int from a __dead function


simplify phrasing


remove the got_stop hack now player_playnext has enough information to decide wheter to call player_senderr or player_sendeof.


change play_*() so that they return an integer this will allow to remove the `got_stop' hack in player.c


drop now unused #include <sndio.h> with the recent refactoring, sndio is only visible in player.c


drop functions prototypes private to player.c and move hdl there too


refactor the player_shouldstop/sio_write dance in a function


fix argc check argc can be -1 if we called noarg with argc=0, because optind is 1.


correctly handle arguments for sub-commands things like "--" should be skipped etc, easier to rely on getopt(3).


output the two repeat bits in two different lines


ctl_noarg: allow argv == 0 for the implicit "status" case