-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
51 lines (42 loc) · 884 Bytes
/
config.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#define MAX_ERROR_LEN 1024
#ifdef HAVE_PORTAUDIO
#define HAS_PORTAUDIO true
#else
#define HAS_PORTAUDIO false
#endif
#ifdef HAVE_ALSA
#define HAS_ALSA true
#else
#define HAS_ALSA false
#endif
#ifdef HAVE_PULSE
#define HAS_PULSE true
#else
#define HAS_PULSE false
#endif
#ifdef HAVE_SNDIO
#define HAS_SNDIO true
#else
#define HAS_SNDIO false
#endif
// These are in order of least-favourable to most-favourable choices, in case
// multiple are supported and configured.
enum input_method {
INPUT_FIFO,
INPUT_PORTAUDIO,
INPUT_ALSA,
INPUT_PULSE,
INPUT_SNDIO,
INPUT_MAX
};
enum mono_option { LEFT, RIGHT, AVERAGE };
enum data_format { FORMAT_ASCII = 0, FORMAT_BINARY = 1, FORMAT_NTK3000 = 2 };
struct error_s {
char message[MAX_ERROR_LEN];
int length;
};