Sign in to follow this  

DirectShow - Render MP3 from memory, how?

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

This topic is 4763 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this