find time difference between audio renderer clock & system clock

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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. :)

.



Relevant Pages

  • Re: synchronization of different media
    ... of the renderer filter. ... >> expect the audio portion of the stream to arrive late due to low ... >> adjust the reference clock time? ... I have decided to use audio stream to create the reference clock. ...
    (microsoft.public.win32.programmer.directx.video)
  • find time difference between audio renderer clock & system clock
    ... Regarding a past post "I wound up getting the reference clock using ... IMediaFilter::GetSyncSourceto get an IReferenceClock pointer then I ... IReferenceClock inside of my filter, ... Does this entail going through the audio output pin ...
    (microsoft.public.win32.programmer.directx.audio)
  • Synchronize 2 Capture Sources into one Stream to Display 3D
    ... Interlace 2In/1Out Filter. ... Do incoming frames get lost when a CAutoLock is ... When asking for the Current Time of the Reference Clock I get Values like ... 120917700000 but the TimeStamp on the Sample is printed as TRefStart ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Live Source Filter Video and Audio Synchronization
    ... Then when I'am trying to run the graph it again prompt the message ... How can I forced the graph to chose my filter as its reference clock? ... Implement this interface if you are writing a filter ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Timing confusion in live source filter
    ... However, when I plug the output from my filter into a file writer, it ... And being able to be used by a render and a ... does anyone know what the reference clock in the ...
    (microsoft.public.win32.programmer.directx.video)