Table of Contents

Class LAMEEncoderPage

Namespace
VisioForge.Core.UI.WPF.Dialogs.OutputFormats.Pages
Assembly
VisioForge.Core.dll

Represents a WPF page for configuring LAME MP3 encoder settings. This page provides UI controls for setting various MP3 encoding parameters including bitrate, quality, and encoding mode.

public class LAMEEncoderPage : Page, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, INotifyPropertyChanged, IComponentConnector

Inheritance

Implements

Inherited Members

Constructors

LAMEEncoderPage()

Initializes a new instance of the VisioForge.Core.UI.WPF.Dialogs.OutputFormats.Pages.LAMEEncoderPage class. Sets up the data context and populates the UI control collections with available options.

public LAMEEncoderPage()

Properties

Bitrate

Gets or sets the target bitrate for MP3 encoding. Common values include 128, 192, 256, 320 kbps.

public int Bitrate { get; set; }

Property Value

int

Bitrates

Gets or sets the collection of available bitrates for UI selection.

public ObservableCollection<int> Bitrates { get; set; }

Property Value

ObservableCollection<int>

ForceMono

Gets or sets a value indicating whether to force mono output. When enabled, stereo input will be downmixed to mono.

public bool ForceMono { get; set; }

Property Value

bool

Quality

Gets or sets the quality level for variable bitrate encoding. Range is 0-100, where 0 is highest quality and 100 is lowest quality.

public int Quality { get; set; }

Property Value

int

QualityMode

Gets or sets the encoding engine quality mode. Determines the tradeoff between encoding speed and quality.

public MP3EncodingQuality QualityMode { get; set; }

Property Value

MP3EncodingQuality

QualityModeStr

Gets or sets the quality mode as a string representation. Used for data binding with UI controls.

public string QualityModeStr { get; set; }

Property Value

string

QualityModes

Gets or sets the collection of available quality modes for UI selection.

public ObservableCollection<string> QualityModes { get; set; }

Property Value

ObservableCollection<string>

UseCBR

Gets or sets a value indicating whether to use constant bitrate (CBR) mode. When disabled, average bitrate (ABR) mode is used.

public bool UseCBR { get; set; }

Property Value

bool

Methods

Fill(ref MP3EncoderSettings)

Fills the provided settings object with current UI values. Exports all encoder parameters from the UI controls to the settings object.

public void Fill(ref MP3EncoderSettings settings)

Parameters

settings MP3EncoderSettings

The LAME MP3 encoder settings object to populate.

GetPageType()

Gets the encoder settings type associated with this page.

public Type GetPageType()

Returns

Type

The type of MP3EncoderSettings.

Init(MP3EncoderSettings)

Initializes the page with existing encoder settings. Loads all encoder parameters from the provided settings object into the UI controls.

public void Init(MP3EncoderSettings settings)

Parameters

settings MP3EncoderSettings

The LAME MP3 encoder settings to load.

InitializeComponent()

InitializeComponent

public void InitializeComponent()

OnPropertyChanged(string)

OnPropertyChanged API.

protected virtual void OnPropertyChanged(string propertyName = null)

Parameters

propertyName string

Property name.

PropertyChanged

Property changed event.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler