Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

The below codes are worked fine.

ISOURCEUTIL_SourceFromAStream(pMe->su, (IAStream*)file, &source);

pMe->md.clsData = MMD_ISOURCE;
pMe->md.pData = source;
pMe->md.dwSize = 0;

IMEDIA_SetMediaData(pMe->media, &pMe->md);
st = IMEDIA_RegisterNotify(pMe->media, (PFNMEDIANOTIFY)SoundCallBack, pMe);
IMEDIA_SetVolume(pMe->media, AEE_MAX_VOLUME);
IMEDIA_Play(pMe->media);

// sound callback
void SoundCallBack(CStream* pMe, AEEMediaCmdNotify* pCommand)

The question is "pCommand->nStatus" cann't receive any message except that "MM_STATUS_TICK_UPDATE" , so I don't know when the sound end.

Does anyone know how to received some messages such as "MMD_STATUS_DONE" used streaming?

Thanks a lot

nobody know? :(

nobody know? :(