WMEncProfile2.LanguageCount
![]() |
The LanguageCount property retrieves the number of languages in the current profile.
Syntax
Long = WMEncProfile2.LanguageCount(enumSrcType, iRenderSiteIndex)
Parameters
enumSrcType
[in] Member of a WMENC_SOURCE_TYPE enumeration type identifying the media stream type.
iRenderSiteIndex
[in] Integer containing the audience stream index. Because an audience can only contain one stream of each type, iRenderSiteIndex must be 0.
Property Value
A Long that indicates the number of languages.
Remarks
Use the Language property to identify a specific language.
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 supported languages.
Dim lLangCount As Long
lLangCount = Pro.LanguageCount(WMENC_AUDIO, 0)
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also