in line ring

SOUND_INCOMING_CALL.txt    the in ring will get it .    in config

app_media_player.cpp

void media_Play_init_audio(APP_AUDIO_STATUS* data)  will get the txt

uint32_t app_play_single_sbc_more_data(uint8_t *buf, uint32_t len)  this function will play the SOUND_INCOMING_CALL.txt 

 

will open the "__EARPHONE"

app_hfp.c

static void hfp_ring_ind_handler(hf_chan_handle_t chan, struct hfp_context *ctx)
{
    enum BT_DEVICE_ID_T chan_id;

    chan_id = chan_id_flag.id;


    TRACE("::HF_EVENT_RING_IND  chan_id:%d\n", chan_id);
#if !defined(FPGA) && defined(__EARPHONE__)

    if (app_bt_device.hf_audio_state[chan_id_flag.id] != BTIF_HF_AUDIO_CON) {
#if defined(TWS_RING_SYNC) && defined(__TWS__)
        TRACE("tws_ring_sync\n");
        tws_ring_sync(ctx->event);
        log_event_1(EVENT_HFP_INCOMING_CALL, ctx->remote_dev_hcihandle & 3);
        app_voice_report(APP_STATUS_INDICATION_INCOMINGCALL,chan_id);
        
       if (is_master_tws_mode())
            {
                app_tws_ask_slave_to_play_voice_prompt(APP_STATUS_INDICATION_INCOMINGCALL);
            }   // tell the slave earbud play  in ring

#else
        log_event_1(EVENT_HFP_INCOMING_CALL, ctx->remote_dev_hcihandle & 3);
        app_voice_report(APP_STATUS_INDICATION_INCOMINGCALL,chan_id);
        
       if (is_master_tws_mode())
            {
                app_tws_ask_slave_to_play_voice_prompt(APP_STATUS_INDICATION_INCOMINGCALL);
            }  // tell the slave earbud play  in ring

#endif
    }
#endif
}

        case AUD_ID_BT_CALL_INCOMING_CALL:
-            g_app_audio_data = (g_language==MEDIA_DEFAULT_LANGUAGE)?(U8*)EN_BT_INCOMING_CALL: (U8*)CN_BT_INCOMING_CALL;
-            g_app_audio_length = (g_language==MEDIA_DEFAULT_LANGUAGE)?sizeof(EN_BT_INCOMING_CALL): sizeof(CN_BT_INCOMING_CALL);
+            g_app_audio_data = (U8*)EN_BT_INCOMING_CALL;//(g_language==MEDIA_DEFAULT_LANGUAGE)?(U8*)EN_BT_INCOMING_CALL: (U8*)CN_BT_INCOMING_CALL;
+            g_app_audio_length = sizeof(EN_BT_INCOMING_CALL);//(g_language==MEDIA_DEFAULT_LANGUAGE)?sizeof(EN_BT_INCOMING_CALL): sizeof(CN_BT_INCOMING_CALL);
             break;

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值