|Microsoft DirectX 9.0|
The BufferCB method is a callback method that receives a pointer to the sample buffer.
HRESULT BufferCB( double SampleTime, BYTE *pBuffer, long BufferLen );
Starting time of the sample, in seconds.
Pointer to a buffer that contains the sample data.
Length of the buffer pointed to by pBuffer, in bytes.
Returns S_OK if successful, or an HRESULT error code otherwise.
Call the ISampleGrabber::SetBufferSamples method to activate sample buffering. Otherwise, the buffer will be empty.