summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-05-11 07:50:28 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-05-11 07:50:28 +0000
commitab88857379cb17ecbeedc8224b7656448d6a2919 (patch)
tree4355cb2ea58aca9f1e7c9c49c95ea6057638022c /lib
parent4d50e05b0d6d118f02727dd1388da522ef03ea7f (diff)
The default device is selected with sndiod(1) or the AUDIODEVICE
environment variable, so stop using the /dev/audio symlink which can't be used by sndiod(1) anyway
Diffstat (limited to 'lib')
-rw-r--r--lib/libsndio/sio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libsndio/sio.c b/lib/libsndio/sio.c
index 9ab1b32474e..3013f6f92e4 100644
--- a/lib/libsndio/sio.c
+++ b/lib/libsndio/sio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio.c,v 1.8 2012/04/11 06:05:43 ratchov Exp $ */
+/* $OpenBSD: sio.c,v 1.9 2012/05/11 07:50:27 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -57,7 +57,7 @@ sio_open(const char *str, unsigned int mode, int nbio)
hdl = sio_aucat_open("/0", mode, nbio);
if (hdl != NULL)
return hdl;
- return sio_sun_open("/", mode, nbio);
+ return sio_sun_open("/0", mode, nbio);
}
if ((p = sndio_parsetype(str, "snd")) != NULL ||
(p = sndio_parsetype(str, "aucat")) != NULL)