Class LAMEEncoderPage
- 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, IComponentConnectorInheritance
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
Bitrates
Gets or sets the collection of available bitrates for UI selection.
public ObservableCollection<int> Bitrates { get; set; }Property Value
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
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
QualityMode
Gets or sets the encoding engine quality mode. Determines the tradeoff between encoding speed and quality.
public MP3EncodingQuality QualityMode { get; set; }Property Value
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
QualityModes
Gets or sets the collection of available quality modes for UI selection.
public ObservableCollection<string> QualityModes { get; set; }Property Value
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
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
settingsMP3EncoderSettings-
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
settingsMP3EncoderSettings-
The LAME MP3 encoder settings to load.
InitializeComponent()
InitializeComponent
public void InitializeComponent()OnPropertyChanged(string)
OnPropertyChanged API.
protected virtual void OnPropertyChanged(string propertyName = null)Parameters
propertyNamestring-
Property name.
PropertyChanged
Property changed event.
public event PropertyChangedEventHandler PropertyChanged