CBaseInputPin::ReceiveMultiple

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.

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 Values

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

DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.