aboutsummaryrefslogtreecommitdiff
path: root/pd/src/s_audio_dummy.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-09 16:36:37 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-09 16:36:37 +0000
commit21c068f1916330e90f814bed461fe0821d1665ec (patch)
tree949b73696fff09a44b8d3eb01b70bae7174cbd14 /pd/src/s_audio_dummy.c
parentbf8ced1efe1a032342e864edc635fa4e2676670d (diff)
checked in pd-0.43-0.src.tar.gz
svn path=/trunk/; revision=15557
Diffstat (limited to 'pd/src/s_audio_dummy.c')
-rw-r--r--pd/src/s_audio_dummy.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/pd/src/s_audio_dummy.c b/pd/src/s_audio_dummy.c
new file mode 100644
index 00000000..5ea1dd9f
--- /dev/null
+++ b/pd/src/s_audio_dummy.c
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2010 Peter Brinkmann (peter.brinkmann@gmail.com)
+ *
+ * For information on usage and redistribution, and for a DISCLAIMER OF ALL
+ * WARRANTIES, see the file, "LICENSE.txt," in this distribution.
+ */
+
+#ifdef USEAPI_DUMMY
+
+#include <stdio.h>
+
+int dummy_open_audio(int nin, int nout, int sr) {
+ return 0;
+}
+
+int dummy_close_audio() {
+ return 0;
+}
+
+int dummy_send_dacs() {
+ return 0;
+}
+
+void dummy_getdevs(char *indevlist, int *nindevs, char *outdevlist,
+ int *noutdevs, int *canmulti, int maxndev, int devdescsize) {
+ sprintf(indevlist, "NONE");
+ sprintf(outdevlist, "NONE");
+ *nindevs = *noutdevs = 1;
+ *canmulti = 0;
+}
+
+void dummy_listdevs() {
+ // do nothing
+}
+
+#endif
+