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


CBaseInputPin::ReceiveMultiple (Compact 2013)

3/26/2014

Retrieves the next block of data from the stream.

This method behaves much like the IMemInputPin::Receive method, but it works with multiple samples.

Override this function if you can usefully process samples in batches.

Syntax

HRESULT ReceiveMultiple(
  IMediaSample** pSamples,
  long nSamples,
  long* nSamplesProcessed
);

Parameters

  • pSamples
    Pointer to an array of samples.
  • nSamples
    Number of samples to process.
  • nSamplesProcessed
    Number of samples processed.

Return Value

Returns an HRESULT value.

Remarks

This member function implements the IMemInputPin::ReceiveMultiple method. It is implemented to call the CBaseInputPin::Receive member function in a loop for nSamples number of iterations.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBaseInputPin Class