mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Refactored the LAME interop.
This commit is contained in:
23
CUETools.Codecs.LAME/LAMEEncoderCBRSettings.cs
Normal file
23
CUETools.Codecs.LAME/LAMEEncoderCBRSettings.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.ComponentModel;
|
||||
using CUETools.Codecs.LAME.Interop;
|
||||
|
||||
namespace CUETools.Codecs.LAME
|
||||
{
|
||||
public class LAMEEncoderCBRSettings
|
||||
{
|
||||
[DefaultValue(0)]
|
||||
public int CustomBitrate { get; set; }
|
||||
|
||||
[DefaultValue(MpegMode.STEREO)]
|
||||
public MpegMode StereoMode { get; set; }
|
||||
|
||||
public LAMEEncoderCBRSettings()
|
||||
{
|
||||
// Iterate through each property and call ResetValue()
|
||||
foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(this))
|
||||
{
|
||||
property.ResetValue(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user