Removed sizeof from CN audio code
This commit is contained in:
parent
6878290e9e
commit
86b2d7de96
|
@ -126,16 +126,16 @@ typedef struct tMediaSoundMap {
|
||||||
const tMediaSoundMap *media_sound_map;
|
const tMediaSoundMap *media_sound_map;
|
||||||
|
|
||||||
const tMediaSoundMap media_sound_map_cn[MAX_SOUND_NUMBER] = {
|
const tMediaSoundMap media_sound_map_cn[MAX_SOUND_NUMBER] = {
|
||||||
{(U8 *)CN_SOUND_ZERO, sizeof(CN_SOUND_ZERO)},
|
{(U8 *)CN_SOUND_ZERO, CN_SOUND_ZERO_len},
|
||||||
{(U8 *)CN_SOUND_ONE, sizeof(CN_SOUND_ONE)},
|
{(U8 *)CN_SOUND_ONE, CN_SOUND_ONE_len},
|
||||||
{(U8 *)CN_SOUND_TWO, sizeof(CN_SOUND_TWO)},
|
{(U8 *)CN_SOUND_TWO, CN_SOUND_TWO_len},
|
||||||
{(U8 *)CN_SOUND_THREE, sizeof(CN_SOUND_THREE)},
|
{(U8 *)CN_SOUND_THREE, CN_SOUND_THREE_len},
|
||||||
{(U8 *)CN_SOUND_FOUR, sizeof(CN_SOUND_FOUR)},
|
{(U8 *)CN_SOUND_FOUR, CN_SOUND_FOUR_len},
|
||||||
{(U8 *)CN_SOUND_FIVE, sizeof(CN_SOUND_FIVE)},
|
{(U8 *)CN_SOUND_FIVE, CN_SOUND_FIVE_len},
|
||||||
{(U8 *)CN_SOUND_SIX, sizeof(CN_SOUND_SIX)},
|
{(U8 *)CN_SOUND_SIX, CN_SOUND_SIX_len},
|
||||||
{(U8 *)CN_SOUND_SEVEN, sizeof(CN_SOUND_SEVEN)},
|
{(U8 *)CN_SOUND_SEVEN, CN_SOUND_SEVEN_len},
|
||||||
{(U8 *)CN_SOUND_EIGHT, sizeof(CN_SOUND_EIGHT)},
|
{(U8 *)CN_SOUND_EIGHT, CN_SOUND_EIGHT_len},
|
||||||
{(U8 *)CN_SOUND_NINE, sizeof(CN_SOUND_NINE)},
|
{(U8 *)CN_SOUND_NINE, CN_SOUND_NINE_len},
|
||||||
};
|
};
|
||||||
|
|
||||||
const tMediaSoundMap media_sound_map_en[MAX_SOUND_NUMBER] = {
|
const tMediaSoundMap media_sound_map_en[MAX_SOUND_NUMBER] = {
|
||||||
|
@ -475,7 +475,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
// &g_app_audio_length, &type);
|
// &g_app_audio_length, &type);
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_POWER_ON_len
|
? EN_SOUND_POWER_ON_len
|
||||||
: sizeof(CN_POWER_ON);
|
: CN_POWER_ON_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_POWER_OFF:
|
case AUD_ID_POWER_OFF:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -483,7 +483,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_POWER_OFF;
|
: (U8 *)CN_POWER_OFF;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_POWER_OFF_len
|
? EN_SOUND_POWER_OFF_len
|
||||||
: sizeof(CN_POWER_OFF);
|
: CN_POWER_OFF_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_PAIR_ENABLE:
|
case AUD_ID_BT_PAIR_ENABLE:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -491,7 +491,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_PAIR_ENABLE;
|
: (U8 *)CN_BT_PAIR_ENABLE;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_PAIR_ENABLE_len
|
? EN_SOUND_PAIR_ENABLE_len
|
||||||
: sizeof(CN_BT_PAIR_ENABLE);
|
: CN_BT_PAIR_ENABLE_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_PAIRING:
|
case AUD_ID_BT_PAIRING:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -499,7 +499,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_PAIRING;
|
: (U8 *)CN_BT_PAIRING;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_PAIRING_len
|
? EN_SOUND_PAIRING_len
|
||||||
: sizeof(CN_BT_PAIRING);
|
: CN_BT_PAIRING_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_PAIRING_SUC:
|
case AUD_ID_BT_PAIRING_SUC:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -507,7 +507,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_PAIRING_SUCCESS;
|
: (U8 *)CN_BT_PAIRING_SUCCESS;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_PAIRING_SUCCESS_len
|
? EN_SOUND_PAIRING_SUCCESS_len
|
||||||
: sizeof(CN_BT_PAIRING_SUCCESS);
|
: CN_BT_PAIRING_SUCCESS_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_PAIRING_FAIL:
|
case AUD_ID_BT_PAIRING_FAIL:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -515,7 +515,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_PAIRING_FAIL;
|
: (U8 *)CN_BT_PAIRING_FAIL;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_PAIRING_FAIL_len
|
? EN_SOUND_PAIRING_FAIL_len
|
||||||
: sizeof(CN_BT_PAIRING_FAIL);
|
: CN_BT_PAIRING_FAIL_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_CALL_REFUSE:
|
case AUD_ID_BT_CALL_REFUSE:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -523,7 +523,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_REFUSE;
|
: (U8 *)CN_BT_REFUSE;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_REFUSE_len
|
? EN_SOUND_REFUSE_len
|
||||||
: sizeof(CN_BT_REFUSE);
|
: CN_BT_REFUSE_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_CALL_OVER:
|
case AUD_ID_BT_CALL_OVER:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -531,7 +531,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_OVER;
|
: (U8 *)CN_BT_OVER;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_OVER_len
|
? EN_SOUND_OVER_len
|
||||||
: sizeof(CN_BT_OVER);
|
: CN_BT_OVER_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_CALL_ANSWER:
|
case AUD_ID_BT_CALL_ANSWER:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -539,7 +539,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_ANSWER;
|
: (U8 *)CN_BT_ANSWER;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_ANSWER_len
|
? EN_SOUND_ANSWER_len
|
||||||
: sizeof(CN_BT_ANSWER);
|
: CN_BT_ANSWER_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_CALL_HUNG_UP:
|
case AUD_ID_BT_CALL_HUNG_UP:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -547,7 +547,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_HUNG_UP;
|
: (U8 *)CN_BT_HUNG_UP;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_HUNG_UP_len
|
? EN_SOUND_HUNG_UP_len
|
||||||
: sizeof(CN_BT_HUNG_UP);
|
: CN_BT_HUNG_UP_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_CALL_INCOMING_CALL:
|
case AUD_ID_BT_CALL_INCOMING_CALL:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -555,7 +555,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_INCOMING_CALL;
|
: (U8 *)CN_BT_INCOMING_CALL;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_INCOMING_CALL_len
|
? EN_SOUND_INCOMING_CALL_len
|
||||||
: sizeof(CN_BT_INCOMING_CALL);
|
: CN_BT_INCOMING_CALL_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_CHARGE_PLEASE:
|
case AUD_ID_BT_CHARGE_PLEASE:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -563,7 +563,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_CHARGE_PLEASE;
|
: (U8 *)CN_CHARGE_PLEASE;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_CHARGE_PLEASE_len
|
? EN_SOUND_CHARGE_PLEASE_len
|
||||||
: sizeof(CN_CHARGE_PLEASE);
|
: CN_CHARGE_PLEASE_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_CHARGE_FINISH:
|
case AUD_ID_BT_CHARGE_FINISH:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -571,7 +571,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_CHARGE_FINISH;
|
: (U8 *)CN_CHARGE_FINISH;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_CHARGE_FINISH_len
|
? EN_SOUND_CHARGE_FINISH_len
|
||||||
: sizeof(CN_CHARGE_FINISH);
|
: CN_CHARGE_FINISH_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_CONNECTED:
|
case AUD_ID_BT_CONNECTED:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -579,7 +579,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_CONNECTED;
|
: (U8 *)CN_BT_CONNECTED;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_CONNECTED_len
|
? EN_SOUND_CONNECTED_len
|
||||||
: sizeof(CN_BT_CONNECTED);
|
: CN_BT_CONNECTED_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_DIS_CONNECT:
|
case AUD_ID_BT_DIS_CONNECT:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -587,7 +587,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_DIS_CONNECT;
|
: (U8 *)CN_BT_DIS_CONNECT;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_DIS_CONNECT_len
|
? EN_SOUND_DIS_CONNECT_len
|
||||||
: sizeof(CN_BT_DIS_CONNECT);
|
: CN_BT_DIS_CONNECT_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_BT_WARNING:
|
case AUD_ID_BT_WARNING:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -595,7 +595,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_WARNING;
|
: (U8 *)CN_BT_WARNING;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_WARNING_len
|
? EN_SOUND_WARNING_len
|
||||||
: sizeof(CN_BT_WARNING);
|
: CN_BT_WARNING_len;
|
||||||
break;
|
break;
|
||||||
case AUDIO_ID_BT_ALEXA_START:
|
case AUDIO_ID_BT_ALEXA_START:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -603,7 +603,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_ALEXA_START;
|
: (U8 *)CN_BT_ALEXA_START;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_ALEXA_START_len
|
? EN_SOUND_ALEXA_START_len
|
||||||
: sizeof(CN_BT_ALEXA_START);
|
: CN_BT_ALEXA_START_len;
|
||||||
break;
|
break;
|
||||||
case AUDIO_ID_BT_ALEXA_STOP:
|
case AUDIO_ID_BT_ALEXA_STOP:
|
||||||
case AUDIO_ID_FIND_MY_BUDS:
|
case AUDIO_ID_FIND_MY_BUDS:
|
||||||
|
@ -613,7 +613,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_ALEXA_STOP;
|
: (U8 *)CN_BT_ALEXA_STOP;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_ALEXA_STOP_len
|
? EN_SOUND_ALEXA_STOP_len
|
||||||
: sizeof(CN_BT_ALEXA_STOP);
|
: CN_BT_ALEXA_STOP_len;
|
||||||
break;
|
break;
|
||||||
case AUDIO_ID_BT_GSOUND_MIC_OPEN:
|
case AUDIO_ID_BT_GSOUND_MIC_OPEN:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -621,7 +621,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_GSOUND_MIC_OPEN;
|
: (U8 *)CN_BT_GSOUND_MIC_OPEN;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_GSOUND_MIC_OPEN_len
|
? EN_SOUND_GSOUND_MIC_OPEN_len
|
||||||
: sizeof(CN_BT_GSOUND_MIC_OPEN);
|
: CN_BT_GSOUND_MIC_OPEN_len;
|
||||||
break;
|
break;
|
||||||
case AUDIO_ID_BT_GSOUND_MIC_CLOSE:
|
case AUDIO_ID_BT_GSOUND_MIC_CLOSE:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -629,7 +629,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_GSOUND_MIC_CLOSE;
|
: (U8 *)CN_BT_GSOUND_MIC_CLOSE;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_GSOUND_MIC_CLOSE_len
|
? EN_SOUND_GSOUND_MIC_CLOSE_len
|
||||||
: sizeof(CN_BT_GSOUND_MIC_CLOSE);
|
: CN_BT_GSOUND_MIC_CLOSE_len;
|
||||||
break;
|
break;
|
||||||
case AUDIO_ID_BT_GSOUND_NC:
|
case AUDIO_ID_BT_GSOUND_NC:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -637,7 +637,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_GSOUND_NC;
|
: (U8 *)CN_BT_GSOUND_NC;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_GSOUND_NC_len
|
? EN_SOUND_GSOUND_NC_len
|
||||||
: sizeof(CN_BT_GSOUND_NC);
|
: CN_BT_GSOUND_NC_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_LANGUAGE_SWITCH:
|
case AUD_ID_LANGUAGE_SWITCH:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -645,7 +645,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_LANGUAGE_SWITCH;
|
: (U8 *)CN_LANGUAGE_SWITCH;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_LANGUAGE_SWITCH_len
|
? EN_SOUND_LANGUAGE_SWITCH_len
|
||||||
: sizeof(CN_LANGUAGE_SWITCH);
|
: CN_LANGUAGE_SWITCH_len;
|
||||||
break;
|
break;
|
||||||
case AUDIO_ID_BT_MUTE:
|
case AUDIO_ID_BT_MUTE:
|
||||||
g_app_audio_data = (U8 *)BT_MUTE;
|
g_app_audio_data = (U8 *)BT_MUTE;
|
||||||
|
@ -657,7 +657,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_ZERO;
|
: (U8 *)CN_SOUND_ZERO;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_ZERO_len
|
? EN_SOUND_ZERO_len
|
||||||
: sizeof(CN_SOUND_ZERO);
|
: CN_SOUND_ZERO_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_NUM_1:
|
case AUD_ID_NUM_1:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -665,7 +665,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_ONE;
|
: (U8 *)CN_SOUND_ONE;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_ONE_len
|
? EN_SOUND_ONE_len
|
||||||
: sizeof(CN_SOUND_ONE);
|
: CN_SOUND_ONE_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_NUM_2:
|
case AUD_ID_NUM_2:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -673,7 +673,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_TWO;
|
: (U8 *)CN_SOUND_TWO;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_TWO_len
|
? EN_SOUND_TWO_len
|
||||||
: sizeof(CN_SOUND_TWO);
|
: CN_SOUND_TWO_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_NUM_3:
|
case AUD_ID_NUM_3:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -681,7 +681,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_THREE;
|
: (U8 *)CN_SOUND_THREE;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_THREE_len
|
? EN_SOUND_THREE_len
|
||||||
: sizeof(CN_SOUND_THREE);
|
: CN_SOUND_THREE_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_NUM_4:
|
case AUD_ID_NUM_4:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -689,7 +689,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_FOUR;
|
: (U8 *)CN_SOUND_FOUR;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_FOUR_len
|
? EN_SOUND_FOUR_len
|
||||||
: sizeof(CN_SOUND_FOUR);
|
: CN_SOUND_FOUR_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_NUM_5:
|
case AUD_ID_NUM_5:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -697,7 +697,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_FIVE;
|
: (U8 *)CN_SOUND_FIVE;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_FIVE_len
|
? EN_SOUND_FIVE_len
|
||||||
: sizeof(CN_SOUND_FIVE);
|
: CN_SOUND_FIVE_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_NUM_6:
|
case AUD_ID_NUM_6:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -705,7 +705,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_SIX;
|
: (U8 *)CN_SOUND_SIX;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_SIX_len
|
? EN_SOUND_SIX_len
|
||||||
: sizeof(CN_SOUND_SIX);
|
: CN_SOUND_SIX_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_NUM_7:
|
case AUD_ID_NUM_7:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -713,7 +713,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_SEVEN;
|
: (U8 *)CN_SOUND_SEVEN;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_SEVEN_len
|
? EN_SOUND_SEVEN_len
|
||||||
: sizeof(CN_SOUND_SEVEN);
|
: CN_SOUND_SEVEN_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_NUM_8:
|
case AUD_ID_NUM_8:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -721,7 +721,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_EIGHT;
|
: (U8 *)CN_SOUND_EIGHT;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_EIGHT_len
|
? EN_SOUND_EIGHT_len
|
||||||
: sizeof(CN_SOUND_EIGHT);
|
: CN_SOUND_EIGHT_len;
|
||||||
break;
|
break;
|
||||||
case AUD_ID_NUM_9:
|
case AUD_ID_NUM_9:
|
||||||
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_data = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
|
@ -729,7 +729,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_SOUND_NINE;
|
: (U8 *)CN_SOUND_NINE;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_NINE_len
|
? EN_SOUND_NINE_len
|
||||||
: sizeof(CN_SOUND_NINE);
|
: CN_SOUND_NINE_len;
|
||||||
break;
|
break;
|
||||||
#ifdef __BT_WARNING_TONE_MERGE_INTO_STREAM_SBC__
|
#ifdef __BT_WARNING_TONE_MERGE_INTO_STREAM_SBC__
|
||||||
case AUD_ID_RING_WARNING:
|
case AUD_ID_RING_WARNING:
|
||||||
|
@ -748,7 +748,7 @@ void media_runtime_audio_prompt_update(uint16_t id, uint8_t **ptr,
|
||||||
: (U8 *)CN_BT_FINDME;
|
: (U8 *)CN_BT_FINDME;
|
||||||
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
g_app_audio_length = (g_language == MEDIA_DEFAULT_LANGUAGE)
|
||||||
? EN_SOUND_FINDME_len
|
? EN_SOUND_FINDME_len
|
||||||
: sizeof(CN_BT_FINDME);
|
: CN_BT_FINDME_len;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case AUDIO_ID_BT_DUDU:
|
case AUDIO_ID_BT_DUDU:
|
||||||
|
|
|
@ -16,137 +16,139 @@
|
||||||
#ifndef __RES_AUDIO_DATA_CN_H
|
#ifndef __RES_AUDIO_DATA_CN_H
|
||||||
#define __RES_AUDIO_DATA_CN_H
|
#define __RES_AUDIO_DATA_CN_H
|
||||||
|
|
||||||
const uint8_t CN_POWER_ON [] = {
|
extern const uint8_t CN_POWER_ON [];
|
||||||
#include "res/cn/SOUND_POWER_ON.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_POWER_OFF [] = {
|
extern const uint8_t CN_POWER_OFF [];
|
||||||
#include "res/cn/SOUND_POWER_OFF.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_ZERO[] = {
|
extern const uint8_t CN_SOUND_ZERO[];
|
||||||
#include "res/cn/SOUND_ZERO.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_ONE[] = {
|
extern const uint8_t CN_SOUND_ONE[];
|
||||||
#include "res/cn/SOUND_ONE.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_TWO[] = {
|
extern const uint8_t CN_SOUND_TWO[];
|
||||||
#include "res/cn/SOUND_TWO.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_THREE[] = {
|
extern const uint8_t CN_SOUND_THREE[];
|
||||||
#include "res/cn/SOUND_THREE.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_FOUR[] = {
|
extern const uint8_t CN_SOUND_FOUR[];
|
||||||
#include "res/cn/SOUND_FOUR.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_FIVE[] = {
|
extern const uint8_t CN_SOUND_FIVE[];
|
||||||
#include "res/cn/SOUND_FIVE.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_SIX[] = {
|
extern const uint8_t CN_SOUND_SIX[];
|
||||||
#include "res/cn/SOUND_SIX.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_SEVEN[] = {
|
extern const uint8_t CN_SOUND_SEVEN[];
|
||||||
#include "res/cn/SOUND_SEVEN.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_EIGHT[] = {
|
extern const uint8_t CN_SOUND_EIGHT[];
|
||||||
#include "res/cn/SOUND_EIGHT.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_SOUND_NINE[] = {
|
extern const uint8_t CN_SOUND_NINE[];
|
||||||
#include "res/cn/SOUND_NINE.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_PAIR_ENABLE[] = {
|
extern const uint8_t CN_BT_PAIR_ENABLE[];
|
||||||
#include "res/cn/SOUND_PAIR_ENABLE.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_PAIRING [] = {
|
extern const uint8_t CN_BT_PAIRING [];
|
||||||
#include "res/cn/SOUND_PAIRING.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_PAIRING_FAIL[] = {
|
extern const uint8_t CN_BT_PAIRING_FAIL[];
|
||||||
#include "res/cn/SOUND_PAIRING_FAIL.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_PAIRING_SUCCESS[] = {
|
extern const uint8_t CN_BT_PAIRING_SUCCESS[];
|
||||||
#include "res/cn/SOUND_PAIRING_SUCCESS.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_REFUSE[] = {
|
extern const uint8_t CN_BT_REFUSE[];
|
||||||
#include "res/cn/SOUND_REFUSE.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_OVER[] = {
|
extern const uint8_t CN_BT_OVER[];
|
||||||
#include "res/cn/SOUND_OVER.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_ANSWER[] = {
|
extern const uint8_t CN_BT_ANSWER[];
|
||||||
#include "res/cn/SOUND_ANSWER.txt"
|
|
||||||
};
|
extern const uint8_t CN_BT_HUNG_UP[];
|
||||||
|
|
||||||
|
extern const uint8_t CN_BT_INCOMING_CALL [];
|
||||||
|
|
||||||
|
extern const uint8_t CN_BT_CONNECTED [];
|
||||||
|
|
||||||
|
extern const uint8_t CN_BT_DIS_CONNECT [];
|
||||||
|
|
||||||
|
extern const uint8_t CN_CHARGE_PLEASE[] ;
|
||||||
|
|
||||||
|
extern const uint8_t CN_CHARGE_FINISH[];
|
||||||
|
|
||||||
|
extern const uint8_t CN_LANGUAGE_SWITCH[];
|
||||||
|
|
||||||
|
extern const uint8_t CN_BT_WARNING[];
|
||||||
|
|
||||||
|
extern const uint8_t CN_BT_ALEXA_START[];
|
||||||
|
|
||||||
|
extern const uint8_t CN_BT_ALEXA_STOP[];
|
||||||
|
|
||||||
|
extern const uint8_t CN_BT_GSOUND_MIC_OPEN[];
|
||||||
|
|
||||||
|
extern const uint8_t CN_BT_GSOUND_MIC_CLOSE[];
|
||||||
|
|
||||||
|
extern const uint8_t CN_BT_GSOUND_NC[];
|
||||||
|
|
||||||
|
|
||||||
const uint8_t CN_BT_HUNG_UP[] = {
|
extern unsigned int CN_POWER_ON_len;
|
||||||
#include "res/cn/SOUND_HUNG_UP.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_INCOMING_CALL [] = {
|
extern unsigned int CN_POWER_OFF_len;
|
||||||
#include "res/cn/SOUND_INCOMING_CALL.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_CONNECTED [] = {
|
extern unsigned int CN_SOUND_ZERO_len;
|
||||||
#include "res/cn/SOUND_CONNECTED.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_DIS_CONNECT [] = {
|
extern unsigned int CN_SOUND_ONE_len;
|
||||||
#include "res/cn/SOUND_DIS_CONNECT.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_CHARGE_PLEASE[] = {
|
extern unsigned int CN_SOUND_TWO_len;
|
||||||
#include "res/cn/SOUND_CHARGE_PLEASE.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_CHARGE_FINISH[] = {
|
extern unsigned int CN_SOUND_THREE_len;
|
||||||
#include "res/cn/SOUND_CHARGE_FINISH.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_LANGUAGE_SWITCH[] = {
|
extern unsigned int CN_SOUND_FOUR_len;
|
||||||
#include "res/cn/SOUND_LANGUAGE_SWITCH.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_WARNING[] = {
|
extern unsigned int CN_SOUND_FIVE_len;
|
||||||
#include "res/cn/SOUND_WARNING.txt"
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint8_t CN_BT_ALEXA_START[] = {
|
extern unsigned int CN_SOUND_SIX_len;
|
||||||
|
|
||||||
};
|
extern unsigned int CN_SOUND_SEVEN_len;
|
||||||
|
|
||||||
const uint8_t CN_BT_ALEXA_STOP[] = {
|
extern unsigned int CN_SOUND_EIGHT_len;
|
||||||
|
|
||||||
};
|
extern unsigned int CN_SOUND_NINE_len;
|
||||||
|
|
||||||
const uint8_t CN_BT_GSOUND_MIC_OPEN[] = {
|
extern unsigned int CN_BT_PAIR_ENABLE_len;
|
||||||
|
|
||||||
};
|
extern unsigned int CN_BT_PAIRING_len;
|
||||||
|
|
||||||
const uint8_t CN_BT_GSOUND_MIC_CLOSE[] = {
|
extern unsigned int CN_BT_PAIRING_FAIL_len;
|
||||||
|
|
||||||
};
|
extern unsigned int CN_BT_PAIRING_SUCCESS_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_REFUSE_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_OVER_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_ANSWER_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_HUNG_UP_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_INCOMING_CALL_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_CONNECTED_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_DIS_CONNECT_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_CHARGE_PLEASE_len ;
|
||||||
|
|
||||||
|
extern unsigned int CN_CHARGE_FINISH_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_LANGUAGE_SWITCH_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_WARNING_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_ALEXA_START_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_ALEXA_STOP_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_GSOUND_MIC_OPEN_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_GSOUND_MIC_CLOSE_len;
|
||||||
|
|
||||||
|
extern unsigned int CN_BT_GSOUND_NC_len;
|
||||||
|
|
||||||
const uint8_t CN_BT_GSOUND_NC[] = {
|
|
||||||
|
|
||||||
};
|
|
||||||
#ifdef __INTERACTION__
|
#ifdef __INTERACTION__
|
||||||
const uint8_t CN_BT_FINDME[] = {
|
extern const uint8_t CN_BT_FINDME[];
|
||||||
#include "res/cn/SOUND_FINDME.txt"
|
extern unsigned int CN_BT_FINDME_len;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue