|Microsoft DirectX 9.0|
The CreateSample method creates a stream sample and optionally specifies the sample buffer.
HRESULT CreateSample( long lSampleSize, BYTE *pbBuffer, DWORD dwFlags, IUnknown *pUnkOuter, IAMMediaTypeSample **ppAMMediaTypeSample );
[in] Size of the sample.
[in] [optional] Pointer to an array of bytes that contains the sample data, or NULL.
[in] [optional] Pointer to the interface of an object that aggregates the stream sample.
[in] Address of an IAMMediaTypeSample interface pointer that receives a pointer to the created sample.
Returns one of the following values.
|E_POINTER||NULL pointer argument.|
If pUnkOuter is non-NULL, the new stream sample is aggregated into the specified object. Filters that receive the sample can then query it for interfaces supported by the aggregating object.