Hi Jing Pan,
Sorry, I cant share code.I hope you understand.
Please let me know if you find any similar case.
But i have shared audio_speaker.c in one of the above comments. Please have a look (i am reading file in main.c which i have not shared, sorry again).
Giving snippet of functionality in main.c
while(1)
{
USB_HostKhciTaskFunction(g_HostHandle);
USB_AudioTask(NULL);
USB_HostMsdTask(&g_MsdFatfsInstance);
USB_HostMsdTask(&g_MsdFatfsInstance_1);
if( ((false != stat_bBuff_1_Empty) || (false != stat_bBuff_2_Empty))
&& (false != bSendAudio))
{
ReadAudioFile();
}
}
Regards,
Aniket