qipp
2025-09-16 e7ac407a6aa40e94a34a772dee14e8d5fb55c45b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef _SANECORE_ADSP_GLOBAL_H__
#define _SANECORE_ADSP_GLOBAL_H__
 
 
#include <def21489.h>
#include <cdef21489.h>
#include <signal.h>
#include <sru.h>
 
 
 
#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 32 //ÎïÀíÊäÈëͨµÀ
#define MAX_OUTPUT_NUM 32 //ÎïÀíÊä³öͨµÀ
 
#define FEEDBACK_FILTERS_NUM 16         //Â˲¨Æ÷×éÊýÄ¿
#define MAX_MIXER_INPUT     36
#define MAX_MIXER_OUTPUT 33
 
#define MAX_EQ_SECTION 12
#define AUTOMIXER_CHANNEL_NUM 32
#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;
 
 
inline void Delay(int d)
{
    int i;
    for(i=0 ; i <d; i++) 
        asm("nop;");
}
 
 
 
 
#endif