| 1 |
/* LineSpectralFrequencies_def.h |
| 2 |
* |
| 3 |
* Copyright (C) 2016,2018,2020 David Weenink, 2019,2022,2025 Paul Boersma |
| 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 2 of the License, or (at |
| 8 |
* your option) any later version. |
| 9 |
* |
| 10 |
* This program 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 program; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
|
| 21 |
#define ooSTRUCT LineSpectralFrequencies_Frame |
| 22 |
oo_DEFINE_STRUCT (LineSpectralFrequencies_Frame) |
| 23 |
|
| 24 |
oo_INTEGER16 (numberOfFrequencies) |
| 25 |
oo_VEC (frequencies, numberOfFrequencies) |
| 26 |
|
| 27 |
oo_END_STRUCT (LineSpectralFrequencies_Frame) |
| 28 |
#undef ooSTRUCT |
| 29 |
|
| 30 |
|
| 31 |
#define ooSTRUCT LineSpectralFrequencies |
| 32 |
oo_DEFINE_CLASS (LineSpectralFrequencies, Sampled) |
| 33 |
|
| 34 |
oo_DOUBLE (maximumFrequency) |
| 35 |
oo_INTEGER16 (maximumNumberOfFrequencies) |
| 36 |
oo_STRUCTVEC (LineSpectralFrequencies_Frame, d_frames, nx) |
| 37 |
|
| 38 |
#if oo_DECLARING |
| 39 |
void v1_info () |
| 40 |
override; |
| 41 |
conststring32 v_getIndexText () const |
| 42 |
override { return U"frame number"; } |
| 43 |
conststring32 v_getNxText () const |
| 44 |
override { return U"the number of frames"; } |
| 45 |
#endif // oo_DECLARING |
| 46 |
|
| 47 |
oo_END_CLASS (LineSpectralFrequencies) |
| 48 |
#undef ooSTRUCT |
| 49 |
|
| 50 |
|
| 51 |
/* End of file LineSpectralFrequencies_def.h */ |