|Microsoft DirectX 9.0|
Allocates a new stream sample object for the current media stream.
HRESULT AllocateSample( DWORD dwFlags, IStreamSample **ppSample );
[in] Flags. Must be zero.
[out] Address of a pointer to the newly created stream sample's IStreamSample interface.
Returns one of the following values.
|E_OUTOFMEMORY||There isn't enough memory available to create a stream sample.|
|E_POINTER||A parameter is invalid.|
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.