Menu

How to force sourcefilter?

BEZ
2009-08-15
2012-10-29
  • BEZ

    BEZ - 2009-08-15

    I have a thirdparty source filter I am trying out for mp3 playback . The problem I am having is that when I load a mp3 file using.
    hr = c_graphBuilder.AddSourceFilter(p_FileName, "DC-Bass Source", l_ppIbase)
    Directsound falls back to the default file source for mp3 files.
    When using graphedit I can select the filter source for use from the list. How can I do this?
    I have already tried getting the filter and adding it to the graph but I can't figure out how to push the file into it.

    Please advise.
    Thanks

     
    • snarfle

      snarfle - 2009-08-15

      Don't use AddSourceFilter. Create an instance of the filter you want and add it to the graph with AddFilter. Then configure the filter to use the file you want, probably with IFileSourceFilter.

       
    • BEZ

      BEZ - 2009-08-16

      snarfle You rock!

      That is exactly what I was looing for.

      Thanks

       

Log in to post a comment.