chiark / gitweb /
Rewrite uaudio-schedule.c. It's now much simpler and should actually
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 11 Apr 2009 16:56:25 +0000 (17:56 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 11 Apr 2009 16:56:25 +0000 (17:56 +0100)
commitb1f6ca8ccc002bc4529fb1f1fef562cf59a25bd5
tree3856e499d9d193e6fa06ad6bb8d0e09fe3e1f5e0
parent211af11eabdfa1226ee2c7aec25002a1d7b25567
Rewrite uaudio-schedule.c.  It's now much simpler and should actually
get the timing right.  An hour of rtpmon is encouraging.

This change pushes responsibility for pausing out towards the APIs.

For ALSA we sleep a bit.  For OSS we close the sound device and sleep a
bit.

For RTP we just pretend to send packets; the scheduler takes care of the
timing.

For command again the scheduler takes care of the timing, though as
before we have the option of either suspending writes or sending 0s.

Scantily tested!
lib/uaudio-alsa.c
lib/uaudio-command.c
lib/uaudio-oss.c
lib/uaudio-rtp.c
lib/uaudio-schedule.c
lib/uaudio-thread.c
lib/uaudio.h