summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/sock.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-08-17 15:07:50 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-08-17 15:07:50 +0000
commit99f722f4941568490afa47b5151c418874ccc8ab (patch)
treeacb3f93bd79aced70d92081d328cf9fa7e03b3fa /usr.bin/aucat/sock.c
parent41a769e460c62f193a71ca69b370bae198b6bfc5 (diff)
if one or more MIDI devices are specified in server mode, subscribe
them to the MIDI thru box
Diffstat (limited to 'usr.bin/aucat/sock.c')
-rw-r--r--usr.bin/aucat/sock.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/aucat/sock.c b/usr.bin/aucat/sock.c
index b0cbba5bdc6..cf9b6514347 100644
--- a/usr.bin/aucat/sock.c
+++ b/usr.bin/aucat/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.20 2009/07/25 10:52:19 ratchov Exp $ */
+/* $OpenBSD: sock.c,v 1.21 2009/08/17 15:07:49 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -716,18 +716,14 @@ void
sock_midiattach(struct sock *f, unsigned mode)
{
struct abuf *rbuf = NULL, *wbuf = NULL;
- struct aparams dummy;
- memset(&dummy, 0, sizeof(dummy));
- dummy.bps = 1;
-
if (mode & AMSG_MIDIOUT) {
- rbuf = abuf_new(3125, &dummy);
+ rbuf = abuf_new(3125, &aparams_none);
aproc_setout(f->pipe.file.rproc, rbuf);
aproc_setin(thrubox, rbuf);
}
if (mode & AMSG_MIDIIN) {
- wbuf = abuf_new(3125, &dummy);
+ wbuf = abuf_new(3125, &aparams_none);
aproc_setin(f->pipe.file.wproc, wbuf);
aproc_setout(thrubox, wbuf);
if (mode & AMSG_MIDIOUT) {