Commits
Commit:
c86624f6da4f8dd827f4f5211822e8de74fca083
From:
Omar Polo <op@omarpolo.com>
Date:
Thu Mar 10 16:30:37 2022 UTC
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.
Commit:
7607911191b7e64b5da7a733b35befd275b2c76d
From:
Omar Polo <op@omarpolo.com>
Date:
Wed Mar 2 17:55:32 2022 UTC
setsong in playlist_swap if the player is stopped
Commit:
3af9396383944c20699d5340bd000f7a5dafb387
From:
Omar Polo <op@omarpolo.com>
Date:
Wed Mar 2 17:54:37 2022 UTC
keep the current song if load input was generated by show -p `amused show -p' generates a listing in the form of song > current song song ... This adds an heuristic to `amused load' so that the current song can be set if it's prefixed by "> ". It's particularly useful when re-importing the state from a previous run.
Commit:
601093db002025f856a835250585bc4d136ea068
From:
Omar Polo <op@omarpolo.com>
Date:
Tue Feb 22 12:16:26 2022 UTC
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.
Commit:
a553fbed3ddcda1fee9838f6307fc2c6e19635db
From:
Omar Polo <op@omarpolo.com>
Date:
Tue Feb 22 12:11:02 2022 UTC
move to the previous song in playlist_dropcurrent() this avoids the player skipping two songs on failure.
Commit:
b21ec899d80b2b7298539334801e73b617cbea3c
From:
Omar Polo <op@omarpolo.com>
Date:
Sat Feb 19 10:16:25 2022 UTC
update the heuristic: try to keep `current_song', not play_off
Commit:
74c987d53230b125b919cd1ab99426e6d81a8bbc
From:
Omar Polo <op@omarpolo.com>
Date:
Sat Feb 19 10:16:25 2022 UTC
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.
Commit:
82e732c933afb90ceeef9e0ac16ca9053a4ea851
From:
Omar Polo <op@omarpolo.com>
Date:
Sat Feb 19 10:16:25 2022 UTC
add a heuristic to try to keep the current song after a `load'
Commit:
a913de2162216a16a67cd8cf5ae0371c258aefc7
From:
Omar Polo <op@omarpolo.com>
Date:
Thu Feb 17 15:41:02 2022 UTC
add `jump' subcommand to play the first matching
Commit:
0977e96a0236af26cfd4663bce2dad656fa1ef07
From:
Omar Polo <op@omarpolo.com>
Date:
Thu Feb 17 11:22:02 2022 UTC
add playlist_swap
Commit:
cd070aeadabc033a40fc829a21f62b4a37684a8c
From:
Omar Polo <op@omarpolo.com>
Date:
Thu Feb 17 10:39:34 2022 UTC
add playlist_free
Commit:
532ca63cfb62d6e60321aff668a4330fdd0a7fb5
From:
Omar Polo <op@omarpolo.com>
Date:
Thu Feb 17 10:27:56 2022 UTC
add playlist_push
Commit:
af27e631bb7de2e74c2bebd8caf8d5707fb9f223
From:
Omar Polo <op@omarpolo.com>
Date:
Thu Feb 17 08:53:22 2022 UTC
add next and prev command
Commit:
13b838834600a04758caef4fae2f1ab61cd357d2
From:
Omar Polo <op@omarpolo.com>
Date:
Wed Feb 16 22:25:41 2022 UTC
drop songs from the playlist on error
Commit:
8891f624779ed4fa401c84d7a82ac804a04faa96
From:
Omar Polo <op@omarpolo.com>
Date:
Wed Feb 16 22:15:28 2022 UTC
fix play_state in playlist_current and advance
Omar Polo