Re: Streaming problems with sample grabber
  Home FAQ Contact Sign in
microsoft.public.win32.programmer.directx.audio only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... directx.audio Profile…
 Up
Re: Streaming problems with sample grabber         


Author: mark
Date: Dec 6, 2006 06:24

My 2 questions are inline

"Chris P." chrisnet.net> wrote in message
news:11c95ce20lqcr.h5nn8o6nsbro.dlg@40tude.net...
> On Tue, 5 Dec 2006 10:52:51 -0000, mark wrote:
> ...
>> I understood the sample grabber would do the conversion for me if I set
>> the
>> media type correctly, are there other conversion routines? I set the
>> media
>> type like this:
>
> Not entirely correct. The SampleGrabber doesn't do any conversion at all.
> What actually happens is that the graph manager will discover when it
> attempts to connect the pins that your pin for the SampleGrabber is
> incompatible, and Intelligent Connect will search for intermediate filters
> to do the conversion. This will result in a decoder filter of some
> description being inserted.

How do I find out which filters are being inserted? And how will I know if
I am getting errors in the filter?
>> One thing I have noticed after stepping through the code is that I use
>> IMediaSeeking::SetPositoins() to set the position of the chunk to be
>> decoded. First time through current = 0 and stop =...
Show full article (2.20Kb)
1 Comment
Re: Streaming problems with sample grabber         


Author: Chris P.
Date: Dec 6, 2006 07:13

On Wed, 6 Dec 2006 14:24:05 -0000, mark wrote:
> How do I find out which filters are being inserted? And how will I know if
> I am getting errors in the filter?

You can discover the filters inserted by walking the graph backwards, i.e.
checking the filter information of the upstream pin connected to the
SampleGrabber's input pin. Or you can just enumerate the graph starting
from the source filter, there are lots of samples around on how to do this.

As for you second question, you usually won't know if there is errors in
the filter as it has no mechanism to pass this information downstream. But
if you decode continuously and the file is valid then there should be no
errors.

no comments