Compartir a través de


CMemAllocator::Alloc (Compact 2013)

3/26/2014

Allocates a media sample object.

Syntax

HRESULT Alloc(void); 

Parameters

None.

Return Value

Returns an HRESULT value.

Remarks

This member function instantiates CMediaSample objects, adds them to the m_lFree data members, and updates the m_lAllocated count. This member function is called from IMemAllocator::Commit when becoming active.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CMemAllocator Class