Jump to content
  • Advertisement
Sign in to follow this  

Directshow: RenderFile() not working reliable

This topic is 3943 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am trying to play mp3s with DirectShow which actually was working quite fast. I followed the MSDN library examples and just used the RenderFile function to do all the work. Well, today I continued to work on it, but on another PC and noticed that unfortunately, on this PC it is not working. In fact the problem is so big that my program simply closes at some point. By debugging I identified the RenderFile function to be the problem. I made sure that I am not doing any mistakes and also checked for this problem on the net a little bit and understand that this function is not the most stable. The assumption seems to be that it selects the wrong filter after searching for good candidates and then crashes. I tried on the same PC to play the file with a normal player and it works fine. I understand that there must be a more robust way than just relying on RenderFile. All my searching for good examples did not yield much results though. Does anybody have a recommondation ?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!