Поделиться через


IAMWMBufferPassCallback::Notify

 
Microsoft DirectShow 9.0

IAMWMBufferPassCallback::Notify

The Notify method is called by the pin for each buffer that is delivered during streaming.

Syntax

  HRESULT Notify(
  INSSBuffer3*  pNSSBuffer3,
  IPin*  pPin,
  REFERENCE_TIME*  prtStart,
  REFERENCE_TIME*  prtEnd
);

Parameters

pNSSBuffer3

[in]  Pointer to the INSSBuffer3 interface of the media sample.

pPin

[in]  Pointer to the IPin interface of the pin that has delivered or received the sample.

prtStart

[in]  Start time of the sample, in 100-nanosecond units.

prtEnd

[in]  End time of the sample, in 100-nanosecond units.

Return Values

No particular return value is specified. The calling pin ignores the HRESULT.

Remarks

This method enables an application to examine and act on information in the media buffer before the buffer contents are processed. The application is responsible for knowing the media type on the pin. This information can be obtained by first getting the stream information from the profile and then calling IConfigAsfWriter2::StreamNumFromPin method to determine which pin is associated with each stream. Alternatively, you can call IPin::ConnectionMediaType on the pin.

Requirements

Header: Include Dshowasf.h. Requires Windows Media Format 9 Series or later.

Library: None.

See Also