Commits
- 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:
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:
0e430247b01565ccc002c8cc3d7038b2dabbc603
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add my copyright
I've added a sufficient amount of code I guess
- Commit:
8d08767078347495fc28f6a97ad1e5e1b3b6f5f2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reimplement `restart' on top of seek
- Commit:
f36fd90a2e6ab101692fba0fa643aec5035597cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use (a modified version of) kristaps' oconfigure
see GitHub issue #1
- Commit:
3ad8bae849a3a44cbdde1c62f087b654a8439a74
- From:
- Omar Polo <op@omarpolo.com>
- Date:
handle seek during pause and stop
- Commit:
c06683bfcc3066ece6177a2256efeeb1f873c79d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop needless debug printf
- Commit:
791d3db313f1f9816c699583c97079efccd408d6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
implement seeking
This adds the internal management of the seeking, as well as the
decoder backends bits.
- Commit:
5d86bc14239778053daa5c38c13f2a5c7d63a24c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify main_send_player: data is always NULL
- Commit:
3af9396383944c20699d5340bd000f7a5dafb387
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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:
87f575c3c6293c5cdff2b424a9f182f1857248f3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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.
- Commit:
310ef57cd092b0af07f656a3b8d40eea6a07ddea
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add (and handle) cmd `repeat'
- Commit:
c6304ab9772cc896b95f92e3f953d98d6e08d975
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use fd instead of pid for tx locking
c->iev.ibuf.pid is our pid, not sure why, but fd is just as well
as easier to use.
- Commit:
a913de2162216a16a67cd8cf5ae0371c258aefc7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `jump' subcommand to play the first matching
- Commit:
19d6b4807a58ea0e289b006d0ae48224ee106526
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add IMSG_CTL_BEGIN/COMMIT to load a playlist in a transaction