qipp
2025-11-07 744722688187eb4991c72464e2bb5e06b244fee7
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
/*
 * delay.h
 * Description:
 *
 *  Created on: 2014-9-29
 *      Author: Graydon
 *  Modify:
 */
 
#ifndef DELAY_H_
#define DELAY_H_
 
/*define the max delay millisecond*/
//#define MAX_DELAY_MSEC    1200
 
/*description: Create Delay processor handle.
 *@param1: sample rate
 *@param2: sample num per frame
 *@param3: how much msec need to delay
 *return: The handle
 */
void* alg_delay_create(int max_delay_msec, int smpl_rate, int smpl_num);
 
/*description: Destroy the delay handle.
 *@param1: The delay handle
 *return: none
 */
void alg_delay_destroy(void * h);
 
/*description: Set the Delay param-msec, range from 0-2000
 *@param1: handle
 *@param2: the real delay ms
 *return: none
 */
void alg_delay_set_msec(void* h,float ms);
 
/*description: Delay process function
 *@param1: handle
 *@param2: the data input
 *@param3: the data output
 *return: successful
 */
int alg_delay_process(void* h,const float* data_in,float* data_out);
 
 
#endif /* DELAY_H_ */