Microsoft DirectX 9.0

CBaseAllocator::GetFreeCount

The GetFreeCount method retrieves the number of media samples that are not in use.

Syntax

HRESULT GetFreeCount(
    LONG *plBuffersFree
);

Parameters

plBuffersFree

Address of a variable that receives the number of samples that are not in use.

Return Value

Returns S_OK.

Remarks

This method implements the IMemAllocatorCallbackTemp::GetFreeCount method. The allocator does not expose the IMemAllocatorCallbackTemp interface unless the fEnableReleaseCallback flag is set to TRUE in the CBaseAllocator constructor.

See Also