IWMEncAudienceObj::put_StreamBitrate
The put_StreamBitrate method specifies the bit rate for streams in the current audience.
Syntax
HRESULT put_StreamBitrate(
WMENC_SOURCE_TYPE enumSrcType,
short iRenderSiteIndex,
long lBitrate
);
Parameters
enumSrcType
[in] Member of a WMENC_SOURCE_TYPE enumeration type identifying the media stream type.
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 stream 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
You can specify the bit rate for video, HTML, and script streams using this method. However, to set the audio bit rate, you must set the entire audio format by using the put_AudioFormat method or the SetAudioConfig method.
Requirements
Header: wmencode.h
Library: wmenc.exe
See Also