Commits
- Commit:
9fb9424225a739a0fbbfec5d31f21458126fd9c2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add consume mode
the consume mode implicitly drops the tracks from the playlist when
played 'till the end (note that skipping over a track doesn't trigger
the consume mode - yet?)
- Commit:
b557564cf8a4e8fe31e78e15b27616c2a30f3c81
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused.1: misc tweaks
- Commit:
b98c922e0b9c445b7a4c81ad678cb1ff8da0a3f0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop restart from the list of 'status-like' commands
now it's an alias for 'seek 0', so it doesn't return the status.
- Commit:
4b42d3a3f30acc64f6720bf33c8f6d695577bf74
- From:
- Omar Polo <op@omarpolo.com>
- Date:
pledge early
This changed amused to pledge "stdio rpath" early in main() and then
drop down to "stdio" in ctlaction, by removing the pledge call in
parse. Simplifies a bit the logic and runs more code under pledge.
- Commit:
0e89621609ecbccc896bfc5614eb58894c98e6cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
include unistd.h for close
spotted on aarch64/glibc
- Commit:
fea2a1d2506a164caf952aec8990ee253bfaf9de
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve 'amused monitor' documentation
- Commit:
232e682b2ba11ede150ba4d6468afc160a025d63
- From:
- Omar Polo <op@omarpolo.com>
- Date:
s/imsg_name/event_name
- Commit:
15aecb89d41f59ac375c7a2a2194ab7cddcaa020
- From:
- Omar Polo <op@omarpolo.com>
- Date:
monitor: fix reported event
rethink a bit which event are reported and when.
- drop 'toggle' event as it's not useful; now 'amused toggle' will
report the play/pause event.
- replace 'flush' with 'load'. there's no real difference between a
flush and an empty load. (also, less event the better)
- some events (next/prev/jump) are reported earlier to avoid possible
issues (when messing around with the playing queue we can end up in
every possible state.)
- report 'seek' only after it really happened (i.e. after the player
process sent the new position.) There's still a possible race here
(we can receive a previous IMSG_POS and think it's the reply to the
seek) but it it's hard/impossible to work around.
- drop 'restart'. we have 'seek' now which is better (and actually
restart is implemented on top of seek.)
- add 'seek' to the default list of events.
- Commit:
87abdf60b66234cded899c05ebd50fe261a047eb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: no need to list all the events
`amused monitor' defaults to report all the events, that should be
enough.
- Commit:
949b5c2eb6f46f77b423a93558d196204dce2953
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor control_notify
it's awkward to call it with the address of the imsgev struct inside
the ctl_conn struct. Just relay the info to every client in monitor
mode. After all, if a client is in monitor mode *and* issues
commands, it's not strange that they're echoed back (note that this is
currently impossible, the command line client can either issue
commands or be in monitor mode.)
- Commit:
3c8ce7d5563e5546fa4e8f694de4730b9cb9b757
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: add a round function and simplify some bits
- Commit:
d855e568075e8a68f66fe8c5a76131aa36d6b853
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: drop unused `min' function
- Commit:
42426670caf9d7bec75f1aeee5db318d77555c85
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused-monitor: rewrite excerpt function
instead of passing "half" of the context wanted, just take the number
of lines wanted. switch to a circular buffer to store the lines
instead of shelling out (badly) to grep -C.
- Commit:
6576093aa0f0a23c584d95c79c03c4ea9a390aaa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
initialize status_format early in the main()
otherwise we may leave it NULL (it's set only in ctl_status) and crash
in print_status.
- Commit:
127f376a4797636687374f562e7a65cae3586040
- From:
- Omar Polo <op@omarpolo.com>
- Date:
handle when the duration is zero