summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/aucat.h
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2011-11-15 08:05:22 +0000
committerratchov <ratchov@openbsd.org>2011-11-15 08:05:22 +0000
commitb395609868171dda79778399742da4042c7d40db (patch)
treef4f72c7c677213b01364f957b5ac3d13fa3811dd /lib/libsndio/aucat.h
parentDon't do non-512 writes to vnd. ok matthew (diff)
downloadwireguard-openbsd-b395609868171dda79778399742da4042c7d40db.tar.xz
wireguard-openbsd-b395609868171dda79778399742da4042c7d40db.zip
Add a "device number" component in sndio(7) device names, allowing a
single aucat instance to handle all audio and MIDI services. Since this partially breaks compatibility, this is a opportunitiy to fix few other design mistakes (eg ':' being used by inet6, type name vs api name confusion, etc..). This leads to the following names: type[@hostname][,unit]/devnum[.option] The device number is the minor device number for direct hardware access (ie the 'N' in /dev/audioN). For aucat, this is the occurence number of the -f (or -M) option. There's a compatibility hook to keep old names working if only one aucat server is running.
Diffstat (limited to 'lib/libsndio/aucat.h')
-rw-r--r--lib/libsndio/aucat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libsndio/aucat.h b/lib/libsndio/aucat.h
index 6598d70aadb..42dc89f85e7 100644
--- a/lib/libsndio/aucat.h
+++ b/lib/libsndio/aucat.h
@@ -20,7 +20,7 @@ int aucat_rmsg(struct aucat *, int *);
int aucat_wmsg(struct aucat *, int *);
size_t aucat_rdata(struct aucat *, void *, size_t, int *);
size_t aucat_wdata(struct aucat *, const void *, size_t, unsigned, int *);
-int aucat_open(struct aucat *, const char *, unsigned);
+int aucat_open(struct aucat *, const char *, unsigned, unsigned);
void aucat_close(struct aucat *, int);
int aucat_pollfd(struct aucat *, struct pollfd *, int);
int aucat_revents(struct aucat *, struct pollfd *);