From 73e8ba63c46a04a9b2affdc0a36cc570630deec5 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Fri, 21 Aug 2009 16:48:04 +0000 Subject: 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. --- usr.bin/aucat/abuf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'usr.bin/aucat/abuf.c') 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 * @@ -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); -- cgit v1.2.3