Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CMediaSample.CMediaSample constructor

Constructor method.

Syntax


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

Parameters

pName

Ignored.

pAllocator

Pointer to the CBaseAllocator object that created this sample.

phr

Ignored.

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.

Requirements

Header

Amfilter.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CMediaSample Class

 

 

Community Additions

ADD
Show:
© 2015 Microsoft