jamie@1: /* libxtract feature extraction library jamie@1: * jamie@1: * Copyright (C) 2006 Jamie Bullock jamie@1: * jamie@1: * This program is free software; you can redistribute it and/or modify jamie@1: * it under the terms of the GNU General Public License as published by jamie@1: * the Free Software Foundation; either version 2 of the License, or jamie@1: * (at your option) any later version. jamie@1: * jamie@1: * This program is distributed in the hope that it will be useful, jamie@1: * but WITHOUT ANY WARRANTY; without even the implied warranty of jamie@1: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jamie@1: * GNU General Public License for more details. jamie@1: * jamie@1: * You should have received a copy of the GNU General Public License jamie@1: * along with this program; if not, write to the Free Software jamie@1: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, jamie@1: * USA. jamie@1: */ jamie@1: jamie@2: /* \file xtract_types.h: declares specialised variable types used by libxtract */ jamie@1: jamie@56: #ifndef XTRACT_TYPES_H jamie@56: #define XTRACT_TYPES_H jamie@1: jamie@1: #ifdef __cplusplus jamie@1: extern "C" { jamie@1: #endif jamie@1: jamie@2: /* \brief Data structure used to store amplitude data between calls to xtract_attack_time and other functions. */ jamie@1: typedef struct _xtract_amp_tracker { jamie@1: int count; jamie@1: float previous_amp; jamie@1: } xtract_amp_tracker; jamie@1: jamie@1: typedef struct _xtract_frame_tracker { jamie@1: int frame_count; jamie@1: float *previous_frame; jamie@1: } xtract_frame_tracker; jamie@1: jamie@1: #ifdef __cplusplus jamie@1: } jamie@1: #endif jamie@1: jamie@1: #endif