/*
 * HA_config.h
 *
 */

#ifndef HA_CONFIG_H_
#define HA_CONFIG_H_

//#define ENABLE_HARKIO3
//#undef ENABLE_HARKIO3

//#define PS_EYE_MODE            0x01
//#define RASP_ALL8CH_MODE       0x02
//#define RASP_ALL4CH_MODE       0x03
//#define RASP_FIRST4CH_MODE     0x04
//#define RASP_LAST4CH_MODE      0x05
//#define MICROCONE_MODE         0x06
//#define BLUETOOTH_MIC_MODE     0x07
//#define DEVICE_NUM_SELECT_MODE 0xFF

#define DEVICE_SINGLE_MIC      0x0001
#define DEVICE_RASP_LC         0x0101
#define DEVICE_RASP_LC4        0x0102
#define DEVICE_RASP_ZX         0x0111
#define DEVICE_RASP_ZX8        0x0112
#define DEVICE_RASP_24         0x0121
#define	DEVICE_PS_EYE          0x0201
#define DEVICE_KINECT          0x0202
#define DEVICE_MICROCONE       0x0203
#define DEVICE_HRI_SP_KM       0x0301
#define DEVICE_HRI_SP_SHT      0x0302

#undef USE_TIMESTAMP // for AudioVisualiser
#ifdef USE_TIMESTAMP
#include "time.h"
#endif

#undef IS_ANDROID
//#define IS_ANDROID

#ifdef __APPLE__
#define IS_APPLE_IOS
#include "TargetConditionals.h"
#if TARGET_OS_IPHONE
// iOS
#else // TARGET_OS_IPHONE
// MacOS
#endif // TARGET_OS_IPHONE
#else // __APPLE__

//#define PS_EYE_MODE_DEF
//#define RASP_ALL8CH_MODE_DEF
//#define RASP_ALL4CH_MODE_DEF
//#define RASP_FIRST4CH_MODE_DEF
//#define RASP_LAST4CH_MODE_DEF
//#define BLUETOOTH_MIC_MODE_DEF
//#if defined PS_EYE_MODE_DEF
//	#define _DEVICE_TYPE_   PS_EYE_MODE
//	#define	_ADVANCE_VAL_	256
//	#define	_DEV_CH_VAL_	4
//	#define	_CH_VAL_		4
//	#define	_CH_OFFSET_VAL_	0
//	#define	_BIT_VAL_		16
////	#define	_THRESH_VAL_	34.0
//	#define	_THRESH_VAL_	39.0 //takigahira hark 2.4.0 test
//#elif defined RASP_ALL8CH_MODE_DEF
//	#define _DEVICE_TYPE_   RASP_ALL8CH_MODE
//	#define	_ADVANCE_VAL_	160
//	#define	_DEV_CH_VAL_	8
//	#define	_CH_VAL_		8
//	#define	_CH_OFFSET_VAL_	0
//	#define	_BIT_VAL_		24
//	#define	_THRESH_VAL_	29.0
////	#define	_THRESH_VAL_	27.0 // for AudioVisualiser
////	#define	_THRESH_VAL_	20.0 // debug
//#elif defined RASP_ALL4CH_MODE_DEF
//	#define _DEVICE_TYPE_   RASP_ALL4CH_MODE
//	#define	_ADVANCE_VAL_	160
//	#define	_DEV_CH_VAL_	4
//	#define	_CH_VAL_		4
//	#define	_CH_OFFSET_VAL_	0
//	#define	_BIT_VAL_		24
//	#define	_THRESH_VAL_	30.0
////	#define	_THRESH_VAL_	34.0
//#elif defined RASP_FIRST4CH_MODE_DEF
//	#define _DEVICE_TYPE_   RASP_FIRST4CH_MODE
//	#define	_ADVANCE_VAL_	160
//	#define	_DEV_CH_VAL_	8
//	#define	_CH_VAL_		4
//	#define	_CH_OFFSET_VAL_	0
//	#define	_BIT_VAL_		24
//	#define	_THRESH_VAL_	34.0
//#elif defined RASP_LAST4CH_MODE_DEF
//	#define _DEVICE_TYPE_   RASP_LAST4CH_MODE
//	#define	_ADVANCE_VAL_	160
//	#define	_DEV_CH_VAL_	8
//	#define	_CH_VAL_		4
//	#define	_CH_OFFSET_VAL_	4
//	#define	_BIT_VAL_		24
//	#define	_THRESH_VAL_	34.0
//#elif defined MICROCONE_MODE_DEF
//	#define _DEVICE_TYPE_   MICROCONE_MODE
//	#define	_ADVANCE_VAL_	160
//	#define	_DEV_CH_VAL_	7
//	#define	_CH_VAL_		7
//	#define	_CH_OFFSET_VAL_	0
//	#define	_BIT_VAL_		24
//	#define	_THRESH_VAL_	34.0
//#elif defined BLUETOOTH_MIC_MODE_DEF
//	#define _DEVICE_TYPE_   BLUETOOTH_MIC_MODE
//	#define	_ADVANCE_VAL_	160
//	#define	_DEV_CH_VAL_	1
//	#define	_CH_VAL_		1
//	#define	_CH_OFFSET_VAL_	0
//	#define	_BIT_VAL_		16
//	#define	_THRESH_VAL_	34.0
//#else
//	#define _DEVICE_TYPE_   RASP_ALL8CH_MODE
//	#define	_ADVANCE_VAL_	160
//	#define	_DEV_CH_VAL_	8
//	#define	_CH_VAL_		8
//	#define	_CH_OFFSET_VAL_	0
//	#define	_BIT_VAL_		24
//	#define	_THRESH_VAL_	28.0
//#endif

//#ifndef _ADVANCE_VAL_
	#define	_ADVANCE_VAL_	512 // 160
//#endif
//#ifndef _DEV_CH_VAL_
//	#define	_DEV_CH_VAL_	8
	#define	_DEV_CH_VAL_	16
//#endif
//#ifndef _CH_VAL_
//	#define	_CH_VAL_		8
	#define	_CH_VAL_		16
//#endif
//#ifndef _CH_OFFSET_VAL_
	#define	_CH_OFFSET_VAL_	0
//#endif
//#ifndef _BIT_VAL_
	#define	_BIT_VAL_		24
//#endif
//#ifndef _THRESH_VAL_
	#define	_THRESH_VAL_	28.0
//#endif

#ifdef IS_ANDROID //////////// **** definitions of ANDROID **** ////////////
#define ENABLE_JNI_FOR_ANDROID  // Enable JNI function for Android NDK
#define ENABLE_ANDROID_FUNCTION // Enable Android function
#define ENABLE_ANDROID_PATH     // Enable Android path, the paths set to /mnt/sdcard/...
#else // IS_ANDROID //////////// **** definitions of other than ANDROID **** ////////////
#undef ENABLE_JNI_FOR_ANDROID  // Disable JNI function for Android NDK
#undef ENABLE_ANDROID_FUNCTION // Disable Android function
#undef ENABLE_ANDROID_PATH     // Disable Android path, the paths set to /media/SD/...
#include <stdio.h>
#include <string.h>
#endif // IS_ANDROID

#endif // __APPLE__

#endif /* HA_CONFIG_H_ */
