mdi_result result;
result = mdi_audio_play_string(
(void*)audio_data,
len,
MDI_FORMAT_WAV,
DEVICE_AUDIO_PLAY_ONCE,
NULL,
NULL);
if (MDI_AUDIO_SUCCESS == result)
{
return 1;
}
else
{
return 0;
}
转载于:https://www.cnblogs.com/qinglong1983/archive/2011/04/19/2020909.html