rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | #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 | |
| 14 | typedef 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 | |
| 25 | void RAWPcmRec_Init(); |
| 26 | void RAWPCMREC_Start(void (*pcmRec_hdlr)(void), kal_uint8 ULChannelNumIdx); |
| 27 | void RAWPCMREC_Stop(); |
| 28 | |
| 29 | void RawPcmRec_GetMicDataBufs(kal_uint32 *add1, kal_uint16 *len1, kal_uint32 *add2, kal_uint16 *len2); |
| 30 | |
| 31 | #endif //#ifndef _RAWPCMREC_H_ |
| 32 | |