-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdac.h
More file actions
57 lines (52 loc) · 990 Bytes
/
dac.h
File metadata and controls
57 lines (52 loc) · 990 Bytes
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
52
53
54
55
56
57
#include <mpd/status.h>
#ifndef BUFSIZE
#define BUFSIZE 256
#endif
typedef enum {
nlock, dsd, pcm, spdif, dop
} dac_signal_t;
typedef enum {
mpd, opt, coax
} dac_source_t;
typedef struct dac_state_t {
dac_signal_t dac_signal;
dac_source_t dac_source;
int state;
int dac_state_changed;
int ext_power;
int dac_power;
int dac_rate;
int dac_volume;
int dac_mute;
enum mpd_state mpd_state;
int mpd_bits;
int mpd_rate;
int clock_h;
int clock_m;
int nightmode;
double load;
double temp;
int plist_key;
int plist_pos;
char artist[BUFSIZE];
char title[BUFSIZE];
char album[BUFSIZE];
char extension[8];
int menu;
int ir_active;
int switch1;
int switch2;
int switch3;
int switch4;
int notifications_lcd;
int notifications_sound;
int notifications_desktop;
} dac_state_t;
extern dac_state_t *dac;
void dac_power(void);
void dac_mute(void);
void dac_unmute(void);
void dac_volume_up(void);
void dac_volume_down(void);
void dac_source(int);
void dac_handle(int);