Επεξεργασία

Κοινή χρήση μέσω


IAMWMBufferPassCallback::Notify method

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

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

Syntax

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

Parameters

pNSSBuffer3 [in]

Pointer to the INSSBuffer3 interface exposed on the media sample.

pPin [in]

Pointer to the pin associated with the media stream that the sample belongs to.

prtStart [in]

Start time of the sample.

prtEnd [in]

End time of the sample.

Return value

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.

See also

DirectShow QASF Reference

IAMWMBufferPassCallback Interface

INSSBuffer3 Interface