Microsoft DirectX 8.1 (C++)

CMediaSample::CMediaSample

Constructor method.

Syntax

CMediaSample(
    TCHAR *pName,
    CBaseAllocator *pAllocator,
    HRESULT *phr,
    LPBYTE pBuffer = NULL,
    LONG length = 0
); 

Parameters

pName

Pointer to a string containing the name of the media sample.

pAllocator

Pointer to the CBaseAllocator object that created this sample.

phr

Pointer to a variable that receives an HRESULT value indicating the success or failure of the method.

pBuffer

Pointer to a memory buffer allocated by the caller, of size length.

length

Length of the memory buffer.

Remarks

The base class does not modify the HRESULT value passed in the phr parameter.

See Also