blob: d71f4e34bac6324d738e1b8501bae122fa532c91 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001
2#ifndef __PCMMIXER_H__
3#define __PCMMIXER_H__
4
5
6uint16 PcmMixer_QueryDlBufLen(void);
7void PcmMixer_writeDlBuf(uint16 *srcBuf, uint16 len);
8
9/**
10 @isMix: Mixer switch for uplink speech, 1 for SPH+Sound, 0 for sound only
11 @gain: Sound effect gain for uplink mixer, for 0 to 7
12*/
13void PcmMixer_ConfigUl(kal_bool isMix, kal_int8 gain );
14
15/**
16 @isMix: Mixer switch for uplink speech, 1 for SPH+Sound, 0 for sound only
17 @gain: Sound effect gain for uplink mixer, for 0 to 7
18*/
19void PcmMixer_ConfigDl(kal_bool isMix, kal_int8 gain );
20
21/**
22 @mixerHisrHandler: handler
23*/
24void PcmMixer_Start(void (*mixerHisrHandler)(void));
25void PcmMixer_Stop(void);
26
27void PcmMixer_Init(void);
28
29#endif //__PCMMIXER_H__