File: softmixer.h

package info (click to toggle)
moc 1%3A2.6.0~svn-r3005-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,656 kB
  • sloc: ansic: 31,749; sh: 929; cpp: 487; makefile: 240
file content (43 lines) | stat: -rw-r--r-- 910 bytes parent folder | download | duplicates (7)
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