IWMEncAudienceObj::get_VideoBufferSize

Windows Media Encoder SDK banner art

The get_VideoBufferSize method retrieves the maximum size of the video buffer.

Syntax

HRESULT get_VideoBufferSize(
  short  iRenderSiteIndex,
  long*  plBS
);

Parameters

iRenderSiteIndex

[in]  short containing the audience stream index. Because an audience can only contain one stream of each type, iRenderSiteIndex must be zero.

plBS

[out]  Pointer to a long that indicates the size of the video buffer, in milliseconds.

Return Values

If the method succeeds, it returns S_OK. If it fails, it supports the IErrorInfo interface and returns an HRESULT error code.

Return code Number Description
E_POINTER 0x80004003 The pointer to the size is NULL.

Remarks

The buffer size is only relevant to constant bit rate (CBR) content.

Requirements

Header: wmencode.h

Library: wmenc.exe

See Also