IMediaStream::AllocateSample (Windows Embedded CE 6.0)
1/6/2010
This method allocates a new stream sample object for the current media stream.
Syntax
HRESULT AllocateSample(
DWORD dwFlags,
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 Value
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
Windows Embedded CE | Windows CE 2.12 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later |