Microsoft DirectX 9.0

ISampleGrabberCB::BufferCB

The BufferCB method is a callback method that receives a pointer to the sample buffer.

Syntax

HRESULT BufferCB(
  double SampleTime,
  BYTE *pBuffer,
  long BufferLen
);

Parameters

SampleTime

Starting time of the sample, in seconds.

pBuffer

Pointer to a buffer that contains the sample data.

BufferLen

Length of the buffer pointed to by pBuffer, in bytes.

Return Value

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

Remarks

Call the ISampleGrabber::SetBufferSamples method to activate sample buffering. Otherwise, the buffer will be empty.

See Also