blob: dca60abe979f81dc3c8ebcf8f94701e33e4ce624 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#ifndef _PCMREC_H_
2#define _PCMREC_H_
3
4typedef enum {
5 PCM_REC_SAMPLE_RATE_IDX_8K = 0,
6 PCM_REC_SAMPLE_RATE_IDX_16K,
7 PCM_REC_SAMPLE_RATE_IDX_32K,
8 PCM_REC_SAMPLE_RATE_IDX_48K,
9
10 PCM_REC_SAMPLE_RATE_IDX_UNDEF = 0xf
11}PCM_REC_SAMPLE_RATE_IDX;
12
13void PCMREC_Start(void (*pcmRec_hdlr)(void), uint8 channelNum, PCM_REC_SAMPLE_RATE_IDX samplingRateIdx);
14void PCMREC_Stop();
15
16void PcmRec_GetMicDataBufs(kal_uint32 *add1, kal_uint16 *len1, kal_uint32 *add2, kal_uint16 *len2);
17
18#endif