Debian Codegraph @

LPC/Cepstrumc_def.h

raw
1 /* Cepstrumc_def.h
2 *
3 * Copyright (C) 1994-2020 David Weenink
4 *
5 * This code 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 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 /*
20 djmw 20020812 GPL header
21 djmw 20080122 Version 1: float -> double
22 */
23
24 #define ooSTRUCT Cepstrumc_Frame
25 oo_DEFINE_STRUCT (Cepstrumc_Frame)
26
27 oo_INT (nCoefficients)
28
29 #if oo_READING_BINARY
30 oo_VERSION_UNTIL (1)
31 oo_FLOAT (c0)
32 oo_obsoleteVEC32 (c, nCoefficients)
33 oo_VERSION_ELSE
34 oo_DOUBLE (c0)
35 oo_VEC (c, nCoefficients)
36 oo_VERSION_END
37 #else
38 oo_DOUBLE (c0)
39 oo_VEC (c, nCoefficients)
40 #endif
41
42 oo_END_STRUCT (Cepstrumc_Frame)
43 #undef ooSTRUCT
44
45
46 #define ooSTRUCT Cepstrumc
47 oo_DEFINE_CLASS (Cepstrumc, Sampled)
48
49 oo_DOUBLE (samplingFrequency) // from Sound
50 oo_INT (maxnCoefficients)
51 oo_STRUCTVEC (Cepstrumc_Frame, frame, nx)
52
53 #if oo_DECLARING
54 void v1_info ()
55 override;
56 #endif
57
58 oo_END_CLASS (Cepstrumc)
59 #undef ooSTRUCT
60
61
62 /* End of file Cepstrumc_def.h */