chiark / gitweb /
Saner speaker process design
authorrjk@greenend.org.uk <>
Mon, 24 Sep 2007 13:52:38 +0000 (14:52 +0100)
committerrjk@greenend.org.uk <>
Mon, 24 Sep 2007 13:52:38 +0000 (14:52 +0100)
commit5a7c42a822d0d3c873e6d3bc3f06e31fbdde43f4
treeaa347435cc2d71d6f66043f79b982ecf17de719b
parentcf714d856f8e57ec300704b665f0bbf33a4a317d
Saner speaker process design

 - device_state now records what state we think the output device is
   in.  For network/command the open/close state is somewhat
   fictitious.
 - mainloop now decides whether it wants to play audio sensibly
   (playable()) and only calls beforepoll() and ready() [formerly
   afterpoll()] if so
 - error retry done at the same time but without calling ready()
 - play() is now defined as always safe to call, and makes best
   efforts to be able to play something.
 - forceplay is gone
server/speaker.c
server/speaker.h