IMediaStream::AllocateSample method
Note This interface is deprecated. New applications should not use it.
Syntax
HRESULT AllocateSample(
DWORD dwFlags,
IStreamSample **ppSample
);
Parameters
dwFlags
Flags. Must be zero.
ppSample
Address of a pointer to the newly created stream sample's IStreamSample interface.
Return value
Returns one of the following values.
| Return code | Description |
|---|---|
|
There isn't enough memory available to create a stream sample. |
|
A parameter is invalid. |
|
Success. |
Remarks
This method allocates the sample and its associated backing object or buffer. The backing object is either the DirectDraw surface for video or the IAudioData object for audio.
Requirements
| Target Platform | Windows |
| Header | mmstream.h |