IWMEncAudienceObj.AudioPeakBitrate

Windows Media Encoder SDK banner art

The AudioPeakBitrate property specifies and retrieves the peak audio bit rate in the current audience when using peak VBR mode.

Syntax

IWMEncAudienceObj.AudioPeakBitrate(iRenderSiteIndex) = Long
Long = IWMEncAudienceObj.AudioPeakBitrate(iRenderSiteIndex)

Parameters

iRenderSiteIndex

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

Property Value

A Long that indicates the peak audio bit rate, in bits per second (bps).

Remarks

This property is only relevant when the profile is using peak VBR mode for audio. You can determine which mode is used with the WMEncProfile2.VBRMode property.

Example Code

' Create a WMEncProfile2 object.
  Dim Pro As WMEncProfile2
  Set Pro = New WMEncProfile2

' Load a custom profile. REPLACE THE FILE NAME.
  Pro.LoadFromFile "C:\Profiles\CustomProfile.prx"

' Create an IWMEncAudienceObj object, selecting the first audience (0)
' in the profile.
  Dim Audnc As IWMEncAudienceObj
  Set Audnc = Pro.Audience(0)

' Retrieve the value for the peak bit rate for audio.
  Dim lAudPeakBRate As Long
  lAudPeakBRate = Audnc.AudioPeakBitrate(0)

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also