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;