Debian Codegraph @

source/calcthr.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 __CALCTHR_H
22 #define __CALCTHR_H
23
24
25 #include <clthreads.h>
26 #include <sndfile.h>
27 #include "global.h"
28
29
30 class Calcthr : public A_thread
31 {
32 public:
33
34 Calcthr (void);
35 ~Calcthr (void);
36 virtual void thr_main (void);
37 void stop (void);
38
39 private:
40
41 void handle_messsage (ITC_mesg *M);
42 void conv_one (M_calc_conv *M);
43 void conv_all (M_calc_conv *M);
44 void edit_one (M_calc_edit *M);
45 void edit_all (M_calc_edit *M);
46 void exp_impdata (M_export *M);
47 SNDFILE *exp_open_multi (Impdata *D, const char *name, U32 type, U32 form, S32 sect, U32 mask);
48 SNDFILE *exp_open_single (Impdata *D, const char *name, U32 type, U32 form, S32 sect, U32 chan);
49 int exp_writesect (SNDFILE *S, Impdata *D, U32 mask, U32 chan, float *data);
50 };
51
52
53 #endif