mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Refactoring
This commit is contained in:
@@ -5,7 +5,7 @@ using System.Text;
|
||||
|
||||
namespace CUETools.Codecs.LAME
|
||||
{
|
||||
public class LameWriterCBRSettings : AudioEncoderSettings
|
||||
public class LameWriterCBRSettings : LameWriterSettings
|
||||
{
|
||||
public static readonly int[] bps_table = new int[] { 96, 128, 192, 256, 320 };
|
||||
|
||||
@@ -16,5 +16,12 @@ namespace CUETools.Codecs.LAME
|
||||
: base("96 128 192 256 320", "256")
|
||||
{
|
||||
}
|
||||
|
||||
public override void Apply(IntPtr lame)
|
||||
{
|
||||
LameWriter.lame_set_VBR(lame, (int)LameVbrMode.Off);
|
||||
LameWriter.lame_set_brate(lame, LameWriterCBRSettings.bps_table[this.EncoderModeIndex]);
|
||||
LameWriter.lame_set_quality(lame, (int)this.Quality);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user