From: Richard Kettlewell Date: Sat, 11 Apr 2009 16:56:25 +0000 (+0100) Subject: Rewrite uaudio-schedule.c. It's now much simpler and should actually X-Git-Tag: 5.0.3~4^2~145^2~4 X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/commitdiff_plain/b1f6ca8ccc002bc4529fb1f1fef562cf59a25bd5?hp=b1f6ca8ccc002bc4529fb1f1fef562cf59a25bd5 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! ---