Copyright © 2006-2019 MultiMedia Soft

EncodeFormats.WMA.GetEncodingBitratesCount method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves the number of supported encoding constant bitrates (CBR) for a given native resampling format.

Each of the supported bitrates can be obtained at a later time using the EncodeFormats.WMA.GetEncodingBitrate 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 WMA object section.

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

 

Syntax

 

[Visual Basic]

control.EncodeFormats.WMA.GetEncodingBitratesCount (

nInputDevice as integer,

nFormatIndex as integer

) as integer


 

[C++]

short control.EncodeFormats.WMA.GetEncodingBitratesCount (

short nInputDevice,

short nFormatIndex

);


 

 

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

 

 

Return value

 

Value

Meaning

 

 

Negative value

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

> 0

The number of supported encoding bitrates