Compartilhar via


IMediaStream::AllocateSample (Windows CE 5.0)

Send Feedback

This method allocates a new stream sample object for the current media stream.

HRESULT AllocateSample(DWORDdwFlags,IStreamSample** ppSample);

Parameters

  • dwFlags
    [in] Flags. Must be zero.
  • ppSample
    [out] Address of a pointer to the newly created stream sample's IStreamSample interface.

Return Values

Returns one of the following values.

Value Description
E_OUTOFMEMORY There is not enough memory available to create a stream sample.
E_POINTER A parameter is invalid.
S_OK Success.

Remarks

This method allocates the sample and its associated backing object or buffer.

The backing object is either the Microsoft DirectDraw® surface for video or the IAudioData object for audio.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

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

See Also

IMediaStream Interface

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.