File: Ymixercodes.h

package info (click to toggle)
yiff 2.06-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,464 kB
  • ctags: 3,028
  • sloc: ansic: 47,463; makefile: 218; sh: 77
file content (78 lines) | stat: -rw-r--r-- 1,901 bytes parent folder | download | duplicates (3)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
                          Y Sound Systems

              Client to Server Mixer Codes and Definations


        Any Y client program that wants to change or fetch mixer
	values needs to #include this file and link to the library
	libY2.

        For contact and programming information, see:

        http://fox.mit.edu/xsw/yiff


	Note: These mixer codes and definations have nothing to do
	with the OSS/ALSA/etc mixer codes. Any coencidence in
	values or procedures should be consider as such, a
	coencidence.

 */

#ifndef YMIXERCODES_H
#define YMIXERCODES_H

/*
 *	Mixer channel codes:
 */
#define YMixerCodeVolume	1	/* Master volume. */
#define YMixerCodeSynth		2	/* FM Synth. */
#define YMixerCodePCM		3	/* Primary PCM. */
#define YMixerCodePCM2		4	/* Secondary PCM. */
#define YMixerCodeGainIn	5	/* Input gain. */
#define YMixerCodeGainOut	6	/* Output gain. */
#define YMixerCodeBass		7
#define YMixerCodeTreble	8
#define YMixerCodeCD		9
#define YMixerCodeSpeaker	10	/* Internal PC speaker? */
#define YMixerCodeMic		11	/* Input (not always microphone). */
#define YMixerCodeRec		12	/* Recorder or AUX (input?). */
#define YMixerCodeMix		13
#define YMixerCodeLine		14
#define YMixerCodeLine1		15
#define YMixerCodeLine2		16
#define YMixerCodeLine3		17


/*
 *	Code base offset:
 *
 *	Since the YMixerCode* codes start at 1 and most indexes
 *	would start at 0. You would need to add this value to
 *	the index value to match it with the YMixerCode* code.
 *
 *	Example:
 *
 *	mixer_code = index + YMixerCodeBaseOffset;
 */
#define YMixerCodeBaseOffset	1


/*
 *	Mixer channel names (conical):
 */
#define YMixerConicalNames	{\
	"vol", "synth", "pcm", "pcm2", "igain", "ogain",  \
	"bass", "treble", "cd", "speaker", "mic", "rec",  \
	"mix", "line", "line1", "line2", "line3"          \
}


/*
 *      Total number of mixer channels:
 */
#define YTotalMixers		17


#endif	/* YMIXERCODES_H */