IWMEncAudienceObj::put_AudioPeakBitrate

Windows Media Encoder SDK banner art

The put_AudioPeakBitrate method specifies the peak audio bit rate in the current audience when using peak VBR mode.

Syntax

HRESULT put_AudioPeakBitrate(
  short  iRenderSiteIndex,
  long  lBitrate
);

Parameters

iRenderSiteIndex

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

lBitrate

[in]  long that indicates the peak audio bit rate, in bits per second (bps).

Return Values

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

Remarks

This method is only relevant when the profile is using peak VBR mode for audio. You can determine which mode is used with the IWMEncProfile2::get_VBRMode method.

Requirements

Header: wmencode.h

Library: wmenc.exe

See Also