case KEY_SIDETONE_SWITCH:
//切换监听
if (bt_phone_dec_is_running()){
extern void sidetone_switch(void);
sidetone_switch();
extern u8 mic2pcm_dec_is_running(void);
if (!mic2pcm_dec_is_running()){
extern int mic2pcm_dec_open(u32 sample_rate);
mic2pcm_dec_open(16000);
}else{
extern void mic2pcm_dec_close(void);
mic2pcm_dec_close();
}
}
break;
杰理之切换监听【篇】
最新推荐文章于 2024-09-04 14:54:41 发布