|
楼主 |
发表于 2012-9-13 18:49:30
|
显示全部楼层
看代码自己搞了个函数,有更好的方法,希望大家指出
void VappShellScrLockScr::playUnlockTone(U16 aud_id)
{
U8 audio_type;
U32 audio_len;
U8 *audio_data = NULL;
audio_data = get_audio((U16)aud_id, &audio_type, &audio_len);
mdi_audio_play_string_with_vol_path((void*)audio_data,
audio_len,
audio_type,
DEVICE_AUDIO_PLAY_ONCE,
NULL,
NULL,
srv_prof_get_ring_vol(),
MDI_DEVICE_SPEAKER_BOTH);
}
===============================================================
调用playUnlockTone(AUD_ID_SCRLOCK_SLIDE_TONE); |
|