1
2 #ifndef __SOUND_EMUX_LEGACY_H
3 #define __SOUND_EMUX_LEGACY_H
4
5
6
7
8
9
10
11 #include <sound/seq_oss_legacy.h>
12
13
14
15
16
17 #define _EMUX_OSS_DEBUG_MODE 0x00
18 #define _EMUX_OSS_REVERB_MODE 0x01
19 #define _EMUX_OSS_CHORUS_MODE 0x02
20 #define _EMUX_OSS_REMOVE_LAST_SAMPLES 0x03
21 #define _EMUX_OSS_INITIALIZE_CHIP 0x04
22 #define _EMUX_OSS_SEND_EFFECT 0x05
23 #define _EMUX_OSS_TERMINATE_CHANNEL 0x06
24 #define _EMUX_OSS_TERMINATE_ALL 0x07
25 #define _EMUX_OSS_INITIAL_VOLUME 0x08
26 #define _EMUX_OSS_INITIAL_ATTEN _EMUX_OSS_INITIAL_VOLUME
27 #define _EMUX_OSS_RESET_CHANNEL 0x09
28 #define _EMUX_OSS_CHANNEL_MODE 0x0a
29 #define _EMUX_OSS_DRUM_CHANNELS 0x0b
30 #define _EMUX_OSS_MISC_MODE 0x0c
31 #define _EMUX_OSS_RELEASE_ALL 0x0d
32 #define _EMUX_OSS_NOTEOFF_ALL 0x0e
33 #define _EMUX_OSS_CHN_PRESSURE 0x0f
34 #define _EMUX_OSS_EQUALIZER 0x11
35
36 #define _EMUX_OSS_MODE_FLAG 0x80
37 #define _EMUX_OSS_COOKED_FLAG 0x40
38 #define _EMUX_OSS_MODE_VALUE_MASK 0x3F
39
40
41
42
43
44 enum {
45 EMUX_MD_EXCLUSIVE_OFF,
46 EMUX_MD_EXCLUSIVE_ON,
47 EMUX_MD_VERSION,
48 EMUX_MD_EXCLUSIVE_SOUND,
49 EMUX_MD_REALTIME_PAN,
50 EMUX_MD_GUS_BANK,
51 EMUX_MD_KEEP_EFFECT,
52 EMUX_MD_ZERO_ATTEN,
53 EMUX_MD_CHN_PRIOR,
54 EMUX_MD_MOD_SENSE,
55 EMUX_MD_DEF_PRESET,
56 EMUX_MD_DEF_BANK,
57 EMUX_MD_DEF_DRUM,
58 EMUX_MD_TOGGLE_DRUM_BANK,
59 EMUX_MD_NEW_VOLUME_CALC,
60 EMUX_MD_CHORUS_MODE,
61 EMUX_MD_REVERB_MODE,
62 EMUX_MD_BASS_LEVEL,
63 EMUX_MD_TREBLE_LEVEL,
64 EMUX_MD_DEBUG_MODE,
65 EMUX_MD_PAN_EXCHANGE,
66 EMUX_MD_END,
67 };
68
69
70
71
72
73 enum {
74
75
76 EMUX_FX_ENV1_DELAY,
77 EMUX_FX_ENV1_ATTACK,
78 EMUX_FX_ENV1_HOLD,
79 EMUX_FX_ENV1_DECAY,
80 EMUX_FX_ENV1_RELEASE,
81 EMUX_FX_ENV1_SUSTAIN,
82 EMUX_FX_ENV1_PITCH,
83 EMUX_FX_ENV1_CUTOFF,
84
85
86 EMUX_FX_ENV2_DELAY,
87 EMUX_FX_ENV2_ATTACK,
88 EMUX_FX_ENV2_HOLD,
89 EMUX_FX_ENV2_DECAY,
90 EMUX_FX_ENV2_RELEASE,
91 EMUX_FX_ENV2_SUSTAIN,
92
93
94 EMUX_FX_LFO1_DELAY,
95 EMUX_FX_LFO1_FREQ,
96 EMUX_FX_LFO1_VOLUME,
97 EMUX_FX_LFO1_PITCH,
98 EMUX_FX_LFO1_CUTOFF,
99
100
101 EMUX_FX_LFO2_DELAY,
102 EMUX_FX_LFO2_FREQ,
103 EMUX_FX_LFO2_PITCH,
104
105
106 EMUX_FX_INIT_PITCH,
107 EMUX_FX_CHORUS,
108 EMUX_FX_REVERB,
109 EMUX_FX_CUTOFF,
110 EMUX_FX_FILTERQ,
111
112
113 EMUX_FX_SAMPLE_START,
114 EMUX_FX_LOOP_START,
115 EMUX_FX_LOOP_END,
116 EMUX_FX_COARSE_SAMPLE_START,
117 EMUX_FX_COARSE_LOOP_START,
118 EMUX_FX_COARSE_LOOP_END,
119 EMUX_FX_ATTEN,
120
121 EMUX_FX_END,
122 };
123
124 #define EMUX_NUM_EFFECTS EMUX_FX_END
125
126
127 #define EMUX_FX_FLAG_OFF 0
128 #define EMUX_FX_FLAG_SET 1
129 #define EMUX_FX_FLAG_ADD 2
130
131
132 #endif