Copyright © 2011-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 EncodeWMA class section.

For further information about available encoding formats see the EncodeFormatsMan class.

 

 

Syntax

 

[Visual Basic]

Public Function GetEncodingVBRQualityEx (

nFrequency as Int32,

nChannels as Int16,

nQualityIndex as Int16

) as Int32


 

[C#]

public Int32 GetEncodingVBRQualityEx (

Int32 nFrequency,

Int16 nChannels,

Int16 nQualityIndex

);


 

[C++]

public: Int32 GetEncodingVBRQualityEx (

Int32 nFrequency,

Int16 nChannels,

Int16 nQualityIndex

);


 

 

Parameter

Description

 

 

nFrequency

Frequency expressed in Hertz (e.g. 44100)

nChannels

Number of channels: 1 for Mono, 2 for Stereo.

Multi-channel is not supported.

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.