Original Post
Hi guys
Anyone know why my call to RenderFile() fails?
It seems like all initialization succeedes. But the RenderFile call fails and kill the app. It seems like this is working on one computer and not on another.
You can download the tutorial at Andypike.com and test. It gives the same failure on the second machine.
Both machines are running Windows XP. The one that fails is a P4 2,5 Ghz. 512 Mb mem and GF4 Ti 4200
The one that succeedes is a
AMD XP 1600, 512 Mb mem, GF3 Ti 200
Any ideas. Any other way to stream mp3s ?
Thanks
Joachim
////SNIP
HRESULT hr;
//Setup direct show stuff to load Mp3s
CoCreateInstance(CLSID_FilterGraph, NULL,
CLSCTX_INPROC, IID_IGraphBuilder, (void**)&myGraph);
hr = myGraph->QueryInterface(IID_IMediaControl, (void**)&myMediaControl);
hr =myGraph->QueryInterface(IID_IMediaPosition, (void**)&myMediaPosition);
//Convert to unicode
WCHAR wFile[255];
MultiByteToWideChar(CP_ACP, 0, filePath, -1, wFile, 255);
//Load file
hr = myGraph->RenderFile(wFile, NULL);