I'm having some troubles loading and playing Mp3's in DirectShow. I load the mp3 and plays it with:
And stops it with:Code:DirectShowGraph->RenderFile(NewFileName, NULL); ... DirectShowMediaPosition->put_CurrentPosition(0); DirectShowMediaControl->Run();
(basically, this code is a bit shortened)Code:DirectShowMediaControl->Stop();
Anyway, if I load another mp3 file, instead of overwriting the old one it seems like they amplify each other. The volume gets louder each time a file is loaded.
How do you clear what was loaded before? I checked the docs and I can't find a suitable function/method for that.
I hope I don't have to recreate the graph object every time an mp3 is loaded...?