LibXtract  0.6.2
xtract_types.h
1 /* libxtract feature extraction library
2  *
3  * Copyright (C) 2006 Jamie Bullock
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
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, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18  * USA.
19  */
20 
21 /* \file xtract_types.h: declares specialised variable types used by libxtract */
22 
23 #ifndef XTRACT_TYPES_H
24 #define XTRACT_TYPES_H
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /* \brief Data structure used to store amplitude data between calls to xtract_attack_time and other functions. */
31 typedef struct _xtract_amp_tracker {
32  int count;
33  float previous_amp;
35 
36 typedef struct _xtract_frame_tracker {
37  int frame_count;
38  float *previous_frame;
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif
_xtract_frame_tracker
Definition: xtract_types.h:36
_xtract_amp_tracker
Definition: xtract_types.h:31