Up to [local] / src / usr.bin / aucat
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_4_4_BASE
Revision 1.2 / (download) - annotate - [select for diffs], Wed May 28 07:36:23 2008 UTC (16 years ago) by ratchov
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)
if aucat is resumed (after suspend), kernel buffers are empty, thus write() syscall succedes and consumes aucat buffers until kernel buffers are full. If aucat buffers are smaller than kernel ones, they will underrun, and aucat will terminate, since underruns are not handled yet. This changes is an improvement until SIGCONT handler is implemented. The correct approach is to add a handler for SIGCONT to: call dev_stop(), reset all buffers, bring play and record in sync, fill play buffers and call dev_start(). ok jakemsr