WMEncProfile2.AudioFormatCount
![]() |
The AudioFormatCount property retrieves the number of audio formats supported by a specific audio codec in the current profile.
Syntax
Long = WMEncProfile2.AudioFormatCount(lCodecIndex)
Parameters
lCodecIndex
[in] Long containing the index of the audio codec.
Property Value
A Long indicating the number of audio formats supported in the current audio codec.
Remarks
Use the EnumAudioFormat to retrieve information about a specific audio format.
This property is read-only.
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"
' Retrieve a value indicating the number of formats supported for each
' audio codec. This statement shows how many formats the first (0)
' audio codec supports.
Dim lFormatCount As Long
lFormatCount = Pro.AudioFormatCount(0)
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also