mtk6261多个音频文件不能连续播放
时间:10-02
整理:3721RD
点击:
mdi_audio_play_string_with_vol_path 这个函数连续调用音频文件,只能播放最后调用的!我想要连续播放,改怎么做?
U8 audio_type;
U32 audio_len;
U8 *audio_data = NULL;
audio_data = get_audio((U16)AUD_ID_PROF_DYZQ, &audio_type, &audio_len);
mdi_audio_play_string_with_vol_path((void*)audio_data, (U32) audio_len,audio_type,DEVICE_AUDIO_PLAY_ONCE,NULL, NULL, 6, MDI_DEVICE_SPEAKER);
audio_data = get_audio((U16) AUD_ID_guan_zhu, &audio_type, &audio_len);
mdi_audio_play_string_with_vol_path((void*)audio_data, (U32) audio_len,audio_type,DEVICE_AUDIO_PLAY_ONCE, NULL, NULL, 5, MDI_DEVICE_SPEAKER);
U8 audio_type;
U32 audio_len;
U8 *audio_data = NULL;
audio_data = get_audio((U16)AUD_ID_PROF_DYZQ, &audio_type, &audio_len);
mdi_audio_play_string_with_vol_path((void*)audio_data, (U32) audio_len,audio_type,DEVICE_AUDIO_PLAY_ONCE,NULL, NULL, 6, MDI_DEVICE_SPEAKER);
audio_data = get_audio((U16) AUD_ID_guan_zhu, &audio_type, &audio_len);
mdi_audio_play_string_with_vol_path((void*)audio_data, (U32) audio_len,audio_type,DEVICE_AUDIO_PLAY_ONCE, NULL, NULL, 5, MDI_DEVICE_SPEAKER);
第一个播放完的回调里面再播放第二个
嗯,已经解决问题了,多谢!确实是这样的