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
#ifndef __AUD_RESAMPLE_H__
#define __AUD_RESAMPLE_H__
 
 
 
typedef enum {
    rate_8k  = 8000,
    rate_16k = 16000,
    rate_32k = 32000,
    rate_48k = 48000,
    rate_96k = 96000    
}smpRate;
 
//ÖØ²ÉÑùËã·¨²ÎÊý³õʼ»¯£¬int srcSmpRate£¬Ô´²ÉÑùÂÊ£¬int dstSmpRate£¬Ä¿µÄ²ÉÑùÂÊ£¬
void* alg_resample_create(int srcSmpRate, int dstSmpRate, int frameLen);
 
int alg_resample_process(void *handle, const float *dataIn, float *dataOut);
 
void alg_resample_destroy(void *handle);
 
 
#endif