diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-08-21 16:48:04 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-08-21 16:48:04 +0000 |
commit | 73e8ba63c46a04a9b2affdc0a36cc570630deec5 (patch) | |
tree | f75825b43f5a93dba1ca426db68ebbe73a75cadd /usr.bin/aucat/abuf.c | |
parent | 09413d5babedee41e813f85e2e1e4726712d00ed (diff) |
make aucat(1) expose a MIDI device to control server behaviour in
realtime. For now only the playback volume of individual streams can be
changed/monitored. To each stream is assigned a MIDI channel; the volume
is changed/monitored using the standard controller number 7.
Diffstat (limited to 'usr.bin/aucat/abuf.c')
-rw-r--r-- | usr.bin/aucat/abuf.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/aucat/abuf.c b/usr.bin/aucat/abuf.c index 6a9dab383ca..f989498816e 100644 --- a/usr.bin/aucat/abuf.c +++ b/usr.bin/aucat/abuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: abuf.c,v 1.13 2009/07/25 10:52:18 ratchov Exp $ */ +/* $OpenBSD: abuf.c,v 1.14 2009/08/21 16:48:03 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -105,8 +105,17 @@ abuf_del(struct abuf *buf) buf->duplex->duplex = NULL; #ifdef DEBUG if (buf->rproc || buf->wproc || ABUF_ROK(buf)) { + /* + * XXX : we should call abort(), here. + * However, poll() doesn't seem to return POLLHUP, + * so the reader is never destroyed; instead it appears + * as blocked. Fix file_poll(), if fixable, and add + * a call to abord() here. + */ +#if 0 ABUF_DPRN(0, buf, "abuf_del: used = %u\n", buf->used); abort(); +#endif } #endif free(buf); |