|
Posted by visalavats on June 18, 2008, 3:44 pm
Please log in for more thread options
Hi all,
I am developing a player for Windows mobile 5.0 for pocket pc.
Whenever i try to play a .mp3 file the function Renderfile fails with
error code VFW_E_CANNOT_RENDER, same code works for .wav files
and .avi files.
below is the code snippet.
hr = CoInitialize(NULL);
hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
IID_IGraphBuilder, (void **) &pGraph);
hr = pGraph->QueryInterface(IID_IMediaControl, (void **) &pControl);
hr = pGraph->QueryInterface(IID_IMediaEvent, (void **) &pEvent);
hr = pGraph->QueryInterface(IID_IBasicAudio, (void **)
&pAudioVolumeControl);
hr = pGraph->RenderFile(L"\Program Files\Hari.mp3" , NULL);
hr fails here..........................
Please help me. I guess many of you surely know about this problem.
Thanks
Vishal
|