blob: cf1c29a58daa101f4b22aee458eb5ec7bd7aa072 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#ifndef _RAWPCMREC_H_
2#define _RAWPCMREC_H_
3
4#include "pcmrec.h"
5/*typedef enum {
6 PCM_REC_SAMPLE_RATE_IDX_8K = 0,
7 PCM_REC_SAMPLE_RATE_IDX_16K,
8 PCM_REC_SAMPLE_RATE_IDX_32K,
9 PCM_REC_SAMPLE_RATE_IDX_48K,
10
11 PCM_REC_SAMPLE_RATE_IDX_UNDEF = 0xf
12}PCM_REC_SAMPLE_RATE_IDX;*/
13
14typedef struct spcRAWPCMBufInfoStruct{
15 //UL sample rate, please refer PCM_REC_SAMPLE_RATE_IDX
16 uint16 u16ULFreq;
17 //UL length in byte
18 uint16 u16ULLength;
19 //DL sample rate, please refer PCM_REC_SAMPLE_RATE_IDX
20 uint16 u16DLFreq;
21 //DL length in byte
22 uint16 u16DLLength;
23}spcRAWPCMBufInfo, *pspcRAWPCMBufInfo;
24
25void RAWPcmRec_Init();
26void RAWPCMREC_Start(void (*pcmRec_hdlr)(void), kal_uint8 ULChannelNumIdx);
27void RAWPCMREC_Stop();
28
29void RawPcmRec_GetMicDataBufs(kal_uint32 *add1, kal_uint16 *len1, kal_uint32 *add2, kal_uint16 *len2);
30
31#endif //#ifndef _RAWPCMREC_H_
32