find time difference between audio renderer clock & system clock
- From: "IUnknown" <ionate@xxxxxxxxxxx>
- Date: 12 Sep 2006 19:55:12 -0700
Regarding a past post "I wound up getting the reference clock using
IMediaFilter::GetSyncSource() to get an IReferenceClock pointer then I
call IReferenceClock::GetTime()."
How do you go about querying the renderer's IReferenceClock from within
an intermediate filter?
For instance, if I would want to query the audio renderer's clock for
IReferenceClock inside of my filter, can I do this in:
HRESULT CTeeInputPin::Receive(IMediaSample *pSample)
If so, what would the code look like, to specifcy that I'm querying the
renderer filter? Does this entail going through the audio output pin
in my filter? I would then get the system's reference clock and
compare the difference between the two.
For some reason I'm not following how another filter's reference clock
(such as the audio renderer) interface can be specified/queried inside
of another filter (such as inftee or a transform filter). I can and
have seen it done in DirectShow applications, but not in a filter
itself!
Please send examples if possible! Thanks guys & gals. :)
.
- Follow-Ups:
- Re: find time difference between audio renderer clock & system clock
- From: Alessandro Angeli [MVP::DS/MF]
- Re: find time difference between audio renderer clock & system clock
- Prev by Date: Re: Build virtual audio driver with Directsound and use with Skype?
- Next by Date: find time difference between audio renderer clock & system clock
- Previous by thread: Re: Allocator's default buffer size & audio requirements
- Next by thread: Re: find time difference between audio renderer clock & system clock
- Index(es):
Relevant Pages
|