Debian Codegraph @

source/global.h

raw
1 // ----------------------------------------------------------------------------
2 //
3 // Copyright (C) 2003-2013 Fons Adriaensen <[email protected]>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 //
18 // ----------------------------------------------------------------------------
19
20
21 #ifndef __GLOBAL_H
22 #define __GLOBAL_H
23
24
25 #include "convolve.h"
26 #include "impdata.h"
27
28
29 enum
30 {
31 TO_CALC = 0,
32 TO_CTRL = 1,
33 EV_X11 = 16,
34 EV_PROG = 17,
35 EV_EXIT = 31
36 };
37
38
39 enum
40 {
41 CB_MAIN_CLOSE = 0x1000,
42 CB_CAPT_AVAIL,
43 CB_CAPT_NOTAV,
44 CB_CAPT_READY,
45 CB_SGEN_READY,
46 CB_FILE_REQ,
47 CB_FILE_CANC,
48 CB_FILE_SESS,
49 CB_FILE_LOAD,
50 CB_FILE_SAVE,
51 CB_FILE_IMPT,
52 CB_FILE_EXPT,
53 CB_OPEN_SGEN,
54 CB_OPEN_CAPT
55 };
56
57
58 enum
59 {
60 EXP_TYPE_RAW,
61 EXP_TYPE_WAV,
62 EXP_TYPE_WAVEX,
63 EXP_TYPE_AMBIS
64 };
65
66
67 enum
68 {
69 EXP_FORM_16B,
70 EXP_FORM_24B,
71 EXP_FORM_FLT
72 };
73
74
75 enum
76 {
77 EXP_CHAN_SEL,
78 EXP_CHAN_ALL
79 };
80
81
82 enum
83 {
84 EXP_SECT_CURR,
85 EXP_SECT_COMB,
86 EXP_SECT_ITER
87 };
88
89
90 enum
91 {
92 MT_CONV_ONE = 1,
93 MT_CONV_ALL,
94 MT_EDIT_ONE,
95 MT_EDIT_ALL,
96 MT_EXPORT
97 };
98
99
100 class M_calc_conv : public ITC_mesg
101 {
102 public:
103
104 M_calc_conv (U32 type) : ITC_mesg (type) {}
105
106 Impdata *_data1;
107 Impdata *_data2;
108 int _sect;
109 Convolver *_conv;
110 int _k0;
111 int _k1;
112 };
113
114
115 class M_calc_edit : public ITC_mesg
116 {
117 public:
118
119 M_calc_edit (U32 type) : ITC_mesg (type) {}
120
121 Impdata *_data1;
122 Impdata *_data2;
123 int _sect;
124 int _offs;
125 float _gain;
126 int _ind0;
127 int _ind1;
128 int _trm00;
129 int _trm01;
130 int _trm10;
131 int _trm11;
132 int _tfade;
133 float _slope;
134 };
135
136
137 class M_export : public ITC_mesg
138 {
139 public:
140
141 M_export (void) : ITC_mesg (MT_EXPORT) {}
142
143 Impdata *_impd;
144 const char *_name;
145 int _type;
146 int _form;
147 int _sect;
148 U32 _mask;
149 int _rval;
150 };
151
152
153 #endif
154