Copyright © 2006-2016 MultiMedia Soft

EncodeFormats.MP3.GetLameEncodingBitratesCount method

Previous pageReturn to chapter overviewNext page



Retrieves the number of encoding bitrates (Constant Bitrate or CBR) supported by Lame for a given native resampling format.

Each of the supported bitrates can be obtained at a later time using the EncodeFormats.MP3.GetLameEncodingBitrate method.


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


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

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





[Visual Basic]

control.EncodeFormats.MP3.GetLameEncodingBitratesCount (

nInputDevice as integer,

nFormatIndex as integer

) as integer



short control.EncodeFormats.MP3.GetLameEncodingBitratesCount (

short nInputDevice,

short nFormatIndex









Number representing the zero-based index of the input device


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






Negative value

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

> 0

The number of supported encoding bitrates