rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | |
| 2 | #ifndef __PCMMIXER_H__ |
| 3 | #define __PCMMIXER_H__ |
| 4 | |
| 5 | |
| 6 | uint16 PcmMixer_QueryDlBufLen(void); |
| 7 | void 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 | */ |
| 13 | void 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 | */ |
| 19 | void PcmMixer_ConfigDl(kal_bool isMix, kal_int8 gain ); |
| 20 | |
| 21 | /** |
| 22 | @mixerHisrHandler: handler |
| 23 | */ |
| 24 | void PcmMixer_Start(void (*mixerHisrHandler)(void)); |
| 25 | void PcmMixer_Stop(void); |
| 26 | |
| 27 | void PcmMixer_Init(void); |
| 28 | |
| 29 | #endif //__PCMMIXER_H__ |