LibXtract 0.6.2

/usr/src/packages/BUILD/libxtract-0.6.2/xtract/xtract_types.h

00001 /* libxtract feature extraction library
00002  *  
00003  * Copyright (C) 2006 Jamie Bullock
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
00018  * USA.
00019  */
00020 
00021 /* \file xtract_types.h: declares specialised variable types used by libxtract */
00022 
00023 #ifndef XTRACT_TYPES_H
00024 #define XTRACT_TYPES_H
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00030 /* \brief Data structure used to store amplitude data between calls to xtract_attack_time and other functions. */
00031 typedef struct _xtract_amp_tracker {
00032     int count;
00033     float previous_amp;
00034 } xtract_amp_tracker;
00035 
00036 typedef struct _xtract_frame_tracker {
00037     int frame_count;
00038     float *previous_frame;
00039 } xtract_frame_tracker;
00040 
00041 #ifdef __cplusplus
00042 }
00043 #endif
00044 
00045 #endif