summaryrefslogtreecommitdiff
path: root/lib/libsndio/aucat.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-11-23 07:03:29 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-11-23 07:03:29 +0000
commite0ec54cfb7c1e7d74bad5acd7800df96c1c4d3d4 (patch)
treedfd9738fc0938d8c3ed1cb3d3ba25202ca3a4472 /lib/libsndio/aucat.c
parent42dd4f4c8b798c2f8b9e8544080704a71226370e (diff)
Remplace aucat server by a new sndiod daemon aimed to be simpler
smaller and faster than aucat. It's a drop in replacement with the following exceptions that don't affect the default setup: - The sample rate and the encoding are a per-device parameters thus -r and -e options must precede the corresponding -f option - MIDI thru boxes are dynamically created and no -M option is required anymore, so -M was removed. - MIDI ports are exposed with a new ``midi/N'' name, rather than abusing MIDI thru boxes. with help from armani@, ok deraadt@
Diffstat (limited to 'lib/libsndio/aucat.c')
-rw-r--r--lib/libsndio/aucat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libsndio/aucat.c b/lib/libsndio/aucat.c
index e1e5211a3ea..c146616df28 100644
--- a/lib/libsndio/aucat.c
+++ b/lib/libsndio/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.55 2012/11/02 10:24:58 ratchov Exp $ */
+/* $OpenBSD: aucat.c,v 1.56 2012/11/23 07:03:28 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -444,8 +444,7 @@ aucat_open(struct aucat *hdl, const char *str, unsigned int mode,
DPRINTF("%s: junk at end of dev name\n", p);
return 0;
}
- if (type)
- devnum += 16; /* XXX */
+ devnum += type * 16; /* XXX */
DPRINTF("aucat_open: host=%s unit=%u devnum=%u opt=%s\n",
host, unit, devnum, opt);
if (host[0] != '\0') {