PDA

View Full Version : IMEDIA + ISOURCEUTIL_SourceFromMemory


Anand
08-01-2003, 03:37 AM
Hi,
I am try to collect information from the file (say hello.mid) to ISource and trying to play using IMEDIA interfaces.
Following is the code which I have tried.
result = ISOURCEUTIL_SourceFromMemory(pMe->pisu,pMe->m_BodyBuffer,fInfo.dwSize,NULL,0,&pMe->ppias);
if(result == SUCCESS)
{
md.clsData = MMD_ISOURCE;
md.pData = pMe->ppias;
md.dwSize = 0;
IMEDIA_SetMediaData(pMe->m_pMedia, &md);
result = IMEDIA_Play(pMe->m_pMedia);
EUNSUPPORTED:
}
where pMe->m_BodyBuffer --> data buffer collected from file.
ppias --> ISource.
When I try to use IMEDIA_Play(), it returns EUNSUPPORTED. But when i use
md.clsData = MMD_FILE_NAME; or
md.clsData = MMD_BUFFER
with other proper parameters, it works fine.
What could be the problem with MMD_ISOURCE?????


Regards
V. Anand