-
Notifications
You must be signed in to change notification settings - Fork 38
/
softmixer.h
43 lines (30 loc) · 910 Bytes
/
softmixer.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
#ifndef SOFTMIXER_H
#define SOFTMIXER_H
#ifdef __cplusplus
extern "C" {
#endif
#define SOFTMIXER_MIN 0
/* Allow amplification, might result in clipping... */
#define SOFTMIXER_MAX 200
#define SOFTMIXER_NAME "Soft"
#define SOFTMIXER_NAME_OFF "S.Off"
#define SOFTMIXER_CFG_ACTIVE "Active:"
#define SOFTMIXER_CFG_AMP "Amplification:"
#define SOFTMIXER_CFG_VALUE "Value:"
#define SOFTMIXER_CFG_MONO "Mono:"
#define SOFTMIXER_SAVE_OPTION "Softmixer_SaveState"
#define SOFTMIXER_SAVE_FILE "softmixer"
char *softmixer_name();
void softmixer_init();
void softmixer_shutdown();
int softmixer_get_value();
void softmixer_set_value(const int val);
int softmixer_is_active();
void softmixer_set_active(int act);
int softmixer_is_mono();
void softmixer_set_mono(int mono);
void softmixer_process_buffer(char *buf, const size_t size, const struct sound_params *sound_params);
#ifdef __cplusplus
}
#endif
#endif