#ifndef _SANECORE_ADSP_GLOBAL_H__ #define _SANECORE_ADSP_GLOBAL_H__ #include #include #include #include #define MCLK 24576000 #define RATE_SAMPLES 48000 // Block Size per Audio Channel #define NUM_SAMPLES 64 #define OFFSET(TYPE_PTR,VALUE) ((int)&((TYPE_PTR)0)->VALUE) #define MAX_INPUT_NUM 16 //ÎïÀíÊäÈëͨµÀ #define MAX_OUTPUT_NUM 16 //ÎïÀíÊä³öͨµÀ #define FEEDBACK_FILTERS_NUM 8 //Â˲¨Æ÷×éÊýÄ¿ #define MAX_MIXER_INPUT 20 #define MAX_MIXER_OUTPUT 17 #define MAX_EQ_SECTION 12 #define AUTOMIXER_CHANNEL_NUM 16 #define MAX_DELAY_MSEC 1200 #define MAX_DELIM_LEN 32 #define FADE_OUT_GAIN -72.f #define FADE_OUT_TIME (1.0f*RATE_SAMPLES/NUM_SAMPLES) #define SLOTS 8 #define CLOCKS_PER_SEC_NLP 400000000//450000000////////////////////////////////// typedef enum{ DEVICE_POLL, DEVICE_INT, DEVICE_DMA, }edevice_manner; typedef struct { void* haec; void* hans; void* hafc; }alg_asy_handle,*palg_asy_handle; inline void Delay(int d) { int i; for(i=0 ; i