Microsoft DirectX 9.0

ISampleGrabberCB::SampleCB

The SampleCB method is a callback method that receives a pointer to the media sample.

Syntax

HRESULT SampleCB(
  double SampleTime,
  IMediaSample *pSample
);

Parameters

SampleTime

Starting time of the sample, in seconds.

pSample

Pointer to the sample's IMediaSample interface.

Return Value

Returns S_OK if successful, or an HRESULT error code otherwise.

See Also