Share via


WMEncProfile2.AudioCodecCount

Windows Media Encoder SDK banner art

The AudioCodecCount property retrieves the number of audio codecs supported in the current profile.

Syntax

Long = WMEncProfile2.AudioCodecCount

Parameters

This property takes no parameters.

Property Value

A Long that indicates the number of audio codecs supported in the current profile.

Remarks

The VBR mode used by the current profile determines which codecs are supported. Use the VBRMode property to determine which mode is used.

Use the EnumAudioCodec property to retrieve information about a specific audio codec.

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 audio codecs supported
' for the current VBR mode.
  Dim lAudCodecCount As Long
  lAudCodecCount = Pro.AudioCodecCount

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also