Copyright © 2006-2018 MultiMedia Soft

EncodeFormats.WMA.GetEncodingVBRQuality method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves a specific encoding quality (for Variable Bit Rate support) for a given native resampling format.

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

 

This method can be called only when the Status property is different from RECORD_STATUS_NOT_READY.

 

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 GetEncodingVBRQuality (

nInputDevice as Int16,

nFormatIndex as Int16,

nQualityIndex as Int16

) as Int32


 

[C#]

public Int32 GetEncodingVBRQuality (

Int16 nInputDevice,

Int16 nFormatIndex,

Int16 nQualityIndex

);


 

[C++]

public: Int32 GetEncodingVBRQuality (

Int16 nInputDevice,

Int16 nFormatIndex,

Int16 nQualityIndex

);


 

 

Parameter

Description

 

 

nInputDevice

Number representing the zero-based index of the input device

nFormatIndex

Number representing the zero-based index of the native resampling format.

The number of native resampling formats supported by the given input device can be obtained using the EncodeFormats.ResampleNativeFormatsGetCount method and their friendly description can be obtained using the EncodeFormats.ResampleNativeFormatGetDesc method.

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.