chenlh
2026-03-26 36e42207da4c088b5bfd96f2cfc8944f890440d7
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
ÿþ#ifndef DELAY_MONO_H
#define DELAY_MONO_H
 
#include <stdio.h>
#include <stdlib.h>
 
 
 
typedef struct Delay_mono_param_t {
    float sample_rate;
    float wet_dry;
    float set_delay;
    float feed_back;
    float high_ratio;
    float hpf;
    float lpf;
}Delay_mono_param;
 
//using namespace ReverbHallRoom;
 
 
typedef struct Delay_mono_t{
    int channels;
    int frame_size;
    int max_delay;
    int size;
    int head;
    int tail;
    float chpf[5],clpf[5],chirt[5];
    float *tmp;
    float **s;
    Delay_mono_param param;
    float **buf;
    FILE *file;
}Delay_mono;
 
 
 
 
Delay_mono *delay_mono_new(int channels, int frame_size, Delay_mono_param *p);
void delay_mono_process(Delay_mono *d, float **data, Delay_mono_param *param);
void delay_mono_delete(Delay_mono *d);
 
 
 
 
 
 
#endif