Re: Source Filter

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ken Revak (ken.revak_at_telusplanet.net)
Date: 11/05/04

  • Next message: Margaret Parsons [MSFT]: "Re: DirectMusic in MFC"
    Date: Fri, 05 Nov 2004 13:25:56 -0700
    
    

    Thanks I will take a look. The ? syntax was just an example off the top
    of my head. I will likely use the my-protocol suggestion.

    Alessandro Angeli [MVP::DigitalMedia] wrote:

    >Ken Revak wrote:
    >
    >
    >
    >>I have a file that has two or more imbedded audio files
    >>(wav or mp3 format)(kinda like structured storage). What
    >>I would like to do is to be able to pass decorated
    >>filenames like 'c:\temp\mydata.kmr?Audio1' into Directx
    >>and have it open and play the stream Audio1 in file
    >>c:\temp\mydata.kmr. Trolling through the documentation
    >>and newsgroups I think I need to write a source filter.
    >>How do I do that? Examples?
    >>
    >>
    >
    >The Async and PushSource samples in the DX9SDK.
    >
    >However, I'm pretty sure you won't fimd a way to use the
    >sample syntax you posted because the graph builder either
    >use the URL protocol scheme, the file extension or the file
    >header to guess the source filter and your URL doesn't have
    >a custom protocol, doesn't end in a recognizable extension
    >(since the file name syntax does not allow for a query
    >string) and is not a valid file name from which data can be
    >read in advance. I suggest you register your filter to
    >handle a custom protocol like
    >"my-protocol://c|/temp/mydata.kmr?Audio1" (the syntax given
    >is WMP-compatible) or a custom extension like
    >"c:\temp\mydata.kmr?Audio1.my-extension". Here is the
    >documentation on the registry entries required to associate
    >a filter to a custom protocol or extension:
    >
    >http://msdn.microsoft.com/library/en-us/directshow/htm/registeringacustomfiletype.asp
    >
    >
    >
    >


  • Next message: Margaret Parsons [MSFT]: "Re: DirectMusic in MFC"

    Relevant Pages

    • Re: Source Filter
      ... > and newsgroups I think I need to write a source filter. ... the file extension or the file ... a custom protocol, doesn't end in a recognizable extension ... // a dot angeli at psynet dot net ...
      (microsoft.public.win32.programmer.directx.audio)
    • Re: more idle thinking: SiMPL
      ... I am thinking of an odd piece of syntax: ... by extension: ... treatment of ';' could be a little more flexible than in C family languages, ... likely make an unreasonable headache for the compiler (AKA: ...
      (comp.lang.misc)
    • Re: Special symbols again (was Re: The problem with "as")
      ... >> we were discussing for the print statement. ... my argument for a consistent extension syntax is ...
      (comp.lang.python)
    • PyWart: Python regular expression syntax is not intuitive.
      ... In particular i find the "extension notation" syntax to be woefully ... mark, but i believe the question mark was a very bad choice, since the ... # Named Group Capture ...
      (comp.lang.python)
    • Re: Making C better (by borrowing from C++)
      ... and a real extension of the ... Extensions are a modification of the syntax, ... If I would have done it by hardwiring the overloaded functions into ...
      (comp.lang.c)