Jump to content
  • Advertisement
Sign in to follow this  
Magos

DirectShow - Render MP3 from memory, how?

This topic is 4983 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

I'm using DirectShow to play MP3's, but the RenderFile method in GraphBuilder only allows filenames. Assume I already have the file in memory, is it possible to render it from there? I'd rather not make a temp file and render it like that.

Share this post


Link to post
Share on other sites
Advertisement
It sure is possible, but I think you'll have to create your own file reader.
You'll have to create a filter that supports your customized IAsyncReader interface so you read from memory instead of a file.
then just call Render() on it's output pin.

Hope I helped

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!