Debian Codegraph @

LPC/LPC_def.h

raw symbols SCIP
1 /* LPC_def.h
2 *
3 * Copyright (C) 1994-2018 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 #define ooSTRUCT LPC_Frame
21 oo_DEFINE_STRUCT (LPC_Frame)
22
23 oo_INT (nCoefficients)
24 #if oo_READING_BINARY
25 oo_VERSION_UNTIL (1)
26 oo_obsoleteVEC32 (a, nCoefficients)
27 oo_FLOAT (gain)
28 oo_VERSION_ELSE
29 oo_VEC (a, nCoefficients)
30 oo_DOUBLE (gain)
31 oo_VERSION_END
32 #else
33 oo_VEC (a, nCoefficients)
34 oo_DOUBLE (gain)
35 #endif
36 #if oo_DECLARING
37 void resize (integer newSize) {
38 a.resize (newSize);
39 nCoefficients = newSize; // maintain invariant
40 }
41 #endif
42
43 oo_END_STRUCT (LPC_Frame)
44 #undef ooSTRUCT
45
46
47 #define ooSTRUCT LPC
48 oo_DEFINE_CLASS (LPC, Sampled)
49
50 oo_DOUBLE (samplingPeriod) // from Sound
51 oo_INT (maxnCoefficients)
52 oo_STRUCTVEC (LPC_Frame, d_frames, nx)
53
54 #if oo_DECLARING
55 void v1_info ()
56 override;
57 conststring32 v_getIndexText () const
58 override { return U"frame number"; }
59 conststring32 v_getNxText () const
60 override { return U"the number of frames"; }
61 #endif
62
63 oo_END_CLASS (LPC)
64 #undef ooSTRUCT
65
66
67 /* End of file LPC_def.h */