Remarks
Retrieves the number of encoding bitrates (Constant Bitrate or CBR) supported by Windows Media components for a given frequency and number of channels.
Each of the supported bitrates can be obtained at a later time using the EncodeFormats.WMA.GetEncodingCBR 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 GetEncodingCBRCount (
nFrequency as Int32,
nChannels as Int16,
nEncodeMode as enumWmaEncodeModes
) as Int16
|
|
[C#]
public Int16 GetEncodingCBRCount (
Int32 nFrequency,
Int16 nChannels,
enumWmaEncodeModes nEncodeMode
);
|
|
[C++]
public: Int16 GetEncodingCBRCount (
Int32 nFrequency,
Int16 nChannels,
enumWmaEncodeModes nEncodeMode
);
|
|
Parameter
|
Description
|
|
|
nFrequency
|
Frequency expressed in Hertz (e.g. 44100)
|
nChannels
|
Number of channels.
Supported values are the following:
Value
|
Meaning
|
1
|
Mono audio stream
|
2
|
Stereo audio stream
|
4
|
3.1 audio stream
|
6
|
5.1 audio stream
|
8
|
7.1 audio stream
|
|
nEncodeMode
|
The encoding mode used for WMA (Windows Media Audio) format recording/encoding.
Supported values are the following:
Mnemonic Value
|
Numeric value
|
Meaning
|
WMA_ENCODE_CBR_STD_16
|
1
|
WMA Standard format at 16 bits per sample.
|
WMA_ENCODE_CBR_PRO_16
|
3
|
WMA Professional format at 16 bits per sample.
|
WMA_ENCODE_CBR_PRO_24
|
4
|
WMA Professional format at 24 bits per sample.
|
|
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 constant bitrates (CBR)
|
|