This is the interface for the LEAD MP3 Encoder.
Lists the valid values for the ApiLevel parameter that can be passed to the ResetToDefaultsEx method.
typedef enum
{
LEncMP3_APILEVEL_1,
} LEncMP3_APILEVEL;
Use the defaults from the current version of the codec.
Specifies the number of output channels.
enum
{
LENCMP3_UNCHANGED = 0,
LENCMP3_FORCE_MONO = 1,
LENCMP3_FORCE_STEREO = 2
} eMP3OutputChannels;
The number of output channels equals the number of input channels.
There is 1 output channel.
There are 2 output channels.
Type | Name | Description |
---|---|---|
long | OutputBitrate | Sets the output bitrate of the compressed audio data. The bitrate is the average number of bits that one second of audio data will take up in the compressed bitstream. The bitrate represents the strength of compression. It also influences quality: the higher the bitrate, the higher the quality. The unit of measure for the bitrate is in kbps. To calculate the number of bytes per second of audio data, divide the bitrate value by eight. The following bitrate values are valid: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320. |
eMP3OutputChannels | OutputChannelsFlag | An enumeration that specifies the number of output channels. |
long | OutputSampleRate | The output sample rate, in samples per second (Hz).The following values are possible: 32000, 44100, 48000. |
Resets the filter to default values.
Specifies which defaults should be used by the filter. Current applications should set ApiLevel to LEncMP3_APILEVEL_1 = 0.
The filter might change in the future and have different properties or default behavior. Calling this method ensures future versions of the filter will behave the same way as when the application was developed.
It is best to call ResetToDefaultsEx(LEncMP3_APILEVEL_1) before you start setting properties and start calling other methods for this interface.
Value | Meaning |
---|---|
S_OK | Successful |
< 0 | An error occurred. |
E_INVALIDARG | The ApiLevel parameter is invalid. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document