/*
|
* 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_ */
|