IWMEncAudienceObj.AudioBitrate
The AudioBitrate property retrieves the bit rate of the audio stream for the current audience.
Syntax
Long = IWMEncAudienceObj.AudioBitrate(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 audio bit rate, in bits per second (bps).
Remarks
This property is read-only. To set the audio bit rate, you must set the entire audio format by using the AudioFormat property or the SetAudioConfig method.
Example Code
' Create a WMEncProfile2 object.
Dim Pro As WMEncProfile2
Set Pro = New WMEncProfile2
' Load a custom profile.
Debug.Print "Specify a valid path and profile filename."
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 audio bit rate for the first (0) stream.
Dim lAudBRate As Long
lAudBRate = Audnc.AudioBitrate(0)
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also