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:
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:
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:
68e4f29ee2b7e9e14d8cf147a938ab08a7397d3d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
allow to customize the output of amused status
This add a -f flag (that falls back to $AMUSED_STATUS_FORMAT) to
control which field to print and in which order.
- Commit:
60a09ce7593620b472371bfbca3c11b6ba8d2c81
- From:
- Omar Polo <op@omarpolo.com>
- Date:
implement seeking on percentage of total duration
- Commit:
8d08767078347495fc28f6a97ad1e5e1b3b6f5f2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reimplement `restart' on top of seek
- 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:
b9d2a697d18a2b6994f7b611145e7b085a5de49d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bits, rate and channels are unsigned
match the struct sio_par
- Commit:
ff06024f86fb68ea11b030f669b162794eb5bc19
- From:
- Omar Polo <op@omarpolo.com>
- Date:
keep track of current position and total duration
- Commit:
17ef54d6ac6c34b0b1370c1c57836322702783e1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improving error reporting
makes the player process optionally send back a string describing the
failure to provide a better and more coincise error message.
This turns the syslog message(s):
amused: unknown file type
amused: failed to play, skipping /home/op/pics/phos.jpg
into:
amused: unknown file type; skipping /home/op/pics/phos.jpg
- Commit:
90122a37e6f55f08fd979f7b07ba20a49952faf8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
amused monitor: allow to pass a list of event as filter
it's easier / simpler for scripts to do
$ amused monitor next,prev,jump
rather than
$ amused monitor | egrep --line-buffered 'next|prev|jump'
- Commit:
5d86bc14239778053daa5c38c13f2a5c7d63a24c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify main_send_player: data is always NULL
- Commit:
0da0ad464c14fc59e00a2d2d904ebc97bedb212e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
change play_*() so that they return an integer
this will allow to remove the `got_stop' hack in player.c
- Commit:
5a4b30307238cd3830c084656fe79c1f00eebcde
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop functions prototypes private to player.c and move hdl there too
- Commit:
2139c525dbcd33e08c153dd8dbe75cd1fddf6b30
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor the player_shouldstop/sio_write dance in a function