Table of Contents

Enum MP3ChannelsMode

Namespace
VisioForge.Core.Types.Output
Assembly
VisioForge.Core.dll

Defines the channel encoding modes available for MP3 audio using the LAME encoder.

public enum MP3ChannelsMode

Fields

StandardStereo = 0

Standard stereo mode with independent left and right channels.

In this mode, the encoder treats left and right channels independently but can dynamically allocate bits between channels based on complexity. If one channel contains silence or requires fewer bits, those bits can be allocated to the other channel. This mode preserves full stereo separation and is recommended for music with significant stereo effects or when maximum stereo fidelity is required. Best for bitrates of 192 kbps and above.

JointStereo = 1

Joint stereo mode using mid/side (M/S) stereo encoding for improved compression.

Joint stereo encodes the sum (mid = L+R) and difference (side = L-R) of the channels instead of left and right directly. This is more efficient when the channels are similar, as is common in most music. The encoder can switch between M/S and L/R encoding dynamically based on which is more efficient for each frame.

This mode typically provides better quality than standard stereo at lower bitrates (128-160 kbps) while maintaining good stereo imaging. It's the default mode for most encoding scenarios and provides the best balance of quality and file size. LAME's implementation is sophisticated and rarely produces audible artifacts.

DualStereo = 2

Dual channel mode for independent channel encoding with fixed bit allocation.

In dual channel mode, the two channels are encoded completely independently, with exactly half the total bitrate allocated to each channel. Unlike standard stereo, bits cannot be shared between channels.

This mode is designed for special applications like:

  • Dual language tracks (e.g., English in left channel, Spanish in right)
  • Karaoke files (music in one channel, vocals in the other)
  • Educational content with different information streams

Not recommended for regular stereo music as it results in lower quality compared to other stereo modes at the same bitrate.

Mono = 3

Mono mode with single channel output.

The audio is encoded as a single channel. If the input is stereo, it will be downmixed to mono by summing the left and right channels and attenuating by 6 dB to prevent clipping. This mode provides:

  • Smallest file sizes (roughly half of stereo at same quality)
  • Maximum compatibility with all playback devices
  • Consistent quality across all playback systems

Recommended for:

  • Speech and voice recordings
  • Low-bandwidth streaming
  • Content where stereo imaging is not important
  • Playback on mono devices

Remarks

The LAME MP3 encoder supports different channel modes that affect how stereo information is encoded and the resulting file size and quality. The choice of channel mode can significantly impact both the compression efficiency and the audio quality.