Copyright © 2006-2019 MultiMedia Soft

EncodeFormats.WMA.GetEncodingVBRQualityEx method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves a specific encoding quality (for Variable Bit Rate support) supported by Windows Media components for a given frequency and number of channels.

The number of available bitrates can be obtained using the EncodeFormats.WMA.GetEncodingVBRQualitiesCountEx method.

 

For further details about encoding in WMA format refer to the WMA object section.

For further information about available encoding formats see the EncodeFormats object.

 

 

Syntax

 

[Visual Basic]

control.EncodeFormats.WMA.GetEncodingVBRQualityEx (

nFrequency as Long,

nChannels as Integer,

nQualityIndex as Integer

) as long


 

[C++]

long control.EncodeFormats.WMA.GetEncodingVBRQualityEx (

long nFrequency,

short nChannels,

short nQualityIndex

);


 

 

Parameter

Description

 

 

nFrequency

Frequency expressed in Hertz (e.g. 44100)

nChannels

Number of channels: 1 for Mono, 2 for Stereo

nQualityIndex

Number representing the zero-based index of the bitrate quality

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred. Check the LastError property value in order to see the last error.

> 0

The requested encoding Variable Bit Rate quality: the range of supported values is from 0 to 100.