1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| #ifndef SIGNAL_H__
| #define SIGNAL_H__
| /*
|
| */
| enum{
| SINE_WAVE = 0x1,
| WHITE_NOISE,
| PINK_NOISE,
| PITCH_VOICE,
| };
|
| void* alg_sg_create(int sample_rate,int sample_num);
|
| void alg_sg_set_param(void* h,int f,int type,float gain);
|
| void alg_sg_process(void* h,float* data_out);
|
| void alg_sg_destroy(void* h);
|
| void gen_pink(float G, int n, float* data_out);
| void gen_white(float G, int n, float* data_out);
|
| #endif
|
|