Sign in to follow this  
Magos

DirectShow - Render MP3 from memory, how?

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

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