summaryrefslogtreecommitdiff
path: root/include/sndio.h
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-05-23 19:25:12 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-05-23 19:25:12 +0000
commit298f5ad9040c0b93ccd39f1e110caab2684070a4 (patch)
treed25cfab90de9052fd97269b828e99beabbe85cbc /include/sndio.h
parent6512e92d37b1b4f867171e80f8d8574b6f22912a (diff)
Make the "default" string a valid device name that has the same effect
as NULL has. This will (hopefully) simplify ports where the user passes the device string.
Diffstat (limited to 'include/sndio.h')
-rw-r--r--include/sndio.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sndio.h b/include/sndio.h
index 15cf8febd7b..4e0ce6bc53d 100644
--- a/include/sndio.h
+++ b/include/sndio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sndio.h,v 1.5 2012/04/11 06:05:43 ratchov Exp $ */
+/* $OpenBSD: sndio.h,v 1.6 2012/05/23 19:25:11 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -20,6 +20,12 @@
#include <sys/param.h>
/*
+ * default audio device and MIDI port
+ */
+#define SIO_DEVANY "default"
+#define MIO_PORTANY "default"
+
+/*
* private ``handle'' structure
*/
struct sio_hdl;