aboutsummaryrefslogtreecommitdiff
path: root/pd/src/s_audio_dummy.c
blob: 5ea1dd9f415eca162f1dbb788142421300f2a977 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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