Copyright © 2006-2019 MultiMedia Soft

EncodeFormats.MP2.GetTwoLameEncodingBitrate method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves a specific encoding bitrate (Constant Bitrate or CBR) supported by TwoLame for a given native resampling format.

The number of available bitrates can be obtained using the EncodeFormats.MP2.GetTwoLameEncodingBitratesCount method.

 

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

 

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

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

 

 

Syntax

 

[Visual Basic]

control.EncodeFormats.MP2.GetTwoLameEncodingBitrate (

nInputDevice as integer,

nFormatIndex as integer,

nBitrateIndex as integer

) as long


 

[C++]

long control.EncodeFormats.MP2.GetTwoLameEncodingBitrate (

short nInputDevice,

short nFormatIndex,

short nBitrateIndex

);


 

 

 

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.

nBitrateIndex

Number representing the zero-based index of the bitrate

 

 

 

 

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 bitrate