Re: Source Filter
From: Ken Revak (ken.revak_at_telusplanet.net)
Date: 11/05/04
- Previous message: Alessandro Angeli [MVP::DigitalMedia]: "Re: Source Filter"
- In reply to: Alessandro Angeli [MVP::DigitalMedia]: "Re: Source Filter"
- Next in thread: Ken Revak: "Re: Source Filter"
- Messages sorted by: [ date ] [ thread ]
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
>
>
>
>
- Previous message: Alessandro Angeli [MVP::DigitalMedia]: "Re: Source Filter"
- In reply to: Alessandro Angeli [MVP::DigitalMedia]: "Re: Source Filter"
- Next in thread: Ken Revak: "Re: Source Filter"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|