find time difference between audio renderer clock & system clock
- From: "IUnknown" <ionate@xxxxxxxxxxx>
- Date: 12 Sep 2006 19:56:58 -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.
After this, do I call IReferenceClock::SetTime() on the renderer's
clock or do I adjust the media sample's timestamp? If it's off too
much, do I insert blank samples or delete samples to compensate and is
it noticeable?
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. :)
.
- Prev by Date: find time difference between audio renderer clock & system clock
- Next by Date: Re: How to copy source/data of LDIRECTSOUNDBUFFER to LDIRECTSOUNDBUFFER8 variable.
- Previous by thread: Re: find time difference between audio renderer clock & system clock
- Next by thread: use graphedit to test virtual audio driver get from DDK?
- Index(es):
Relevant Pages
|