chiark / gitweb /
Use disorder-choose to pick random tracks.
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 12 Apr 2008 11:00:37 +0000 (12:00 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 12 Apr 2008 11:00:37 +0000 (12:00 +0100)
commit49a773ebadd79145a20ad434caddcb7c4d5616b3
treed88f8c54503d01ac6fdb67729ca2bad3f4c248b7
parent91c9324af56bd50592e818fd4763e6cdcea68857
Use disorder-choose to pick random tracks.

State and periodic activity handling is reorganized.  Periodic
activities started from main() are now handled in much more a
consistent manner.

The server will now check for new track to play once a second, and try
to add a new random track once every ten seconds.  In addition various
bits of play.c attempt these operations when immmediate response is
more appropriate, but are now freed from the responsibility of
ensuring that they occur at a reasonable frequency.

A couple of features have disappeared for now:
- disorder_track_random() is gone form the server API.  This has been
  useless for a while now.
- The 'gap' configuration item no longer works.  I'm not convinced
  it'll be missed; 0 is by far the most useful setting since otherwise
  album play is disrupted.
CHANGES
doc/disorder.3
doc/disorder_config.5.in
lib/event.c
lib/trackdb.c
lib/trackdb.h
server/api-server.c
server/disorderd.c
server/play.c
server/play.h
server/server.c