
#ifndef _INCLUDE_LOCALIZE_MUSIC_H_
#define _INCLUDE_LOCALIZE_MUSIC_H_

#include "android_hark.h"

#define EMB_LOCALIZE_ON

//#define TAKIGAHIRA  //sugisaki //window type=PAST用??
#define OLD_CALC //sugisaki

typedef struct _AMATRIX_INFO2_t_
{
/*
    int length;
    int sampling_rate;
    float elevation;
    int window;
    int period;
    int num_source;
    int min_deg;
    int max_deg;
    int lower_band;
    int upper_band;
*/
    int fft_length;
    int mic_num;
    int direction_num;
    int range_num;
    int height_num;
    
}AMATRIX_INFO2_t;

extern COMPLEX_FLOAT ***embX; //win*ch*257
//extern COMPLEX_FLOAT ****AMatrix2; //sugisaki
extern COMPLEX_FLOAT *****AMatrix2; //sugisaki
extern float MSSW2[];
extern int   SearchDirection2[];
extern float fSearchDirection2[]; //sugisaki
extern float fSearchHeight2[]; //sugisaki
extern float fSearchRange2[]; //sugisaki
extern SOURCE_DATA_ARY_t sources2;
extern AMATRIX_INFO2_t amatrix_info2;

#ifdef __cplusplus
extern "C" {
#endif

extern int HASetParamLocalizeMUSIC(Param_LocalizeMUSIC_t *param);
extern int HAInitLocalizeMUSIC(void);
extern int HAReleaseLocalizeMUSIC(void);
extern int LocalizeMUSIC(int frame_count, SOURCE_DATA_ARY_t *sources);

#ifdef __cplusplus
}
#endif

#endif /* End of _INCLUDE_LOCALIZE_MUSIC_H_ */

/* EOF */


