2011-10-25 04:47:05 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace CUETools.Codecs.LAME
|
|
|
|
|
|
{
|
2013-04-02 19:56:58 -04:00
|
|
|
|
public class LameWriterVBRSettings : LameWriterSettings
|
2011-10-25 04:47:05 +00:00
|
|
|
|
{
|
|
|
|
|
|
[DefaultValue(LameQuality.High)]
|
|
|
|
|
|
public LameQuality Quality { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public LameWriterVBRSettings()
|
2013-04-01 23:03:22 -04:00
|
|
|
|
: base("V9 V8 V7 V6 V5 V4 V3 V2 V1 V0", "V2")
|
2011-10-25 04:47:05 +00:00
|
|
|
|
{
|
|
|
|
|
|
}
|
2013-04-02 19:56:58 -04:00
|
|
|
|
|
|
|
|
|
|
public override void Apply(IntPtr lame)
|
|
|
|
|
|
{
|
|
|
|
|
|
LameWriter.lame_set_VBR(lame, (int)LameVbrMode.Default);
|
|
|
|
|
|
LameWriter.lame_set_VBR_quality(lame, 9 - this.EncoderModeIndex);
|
|
|
|
|
|
LameWriter.lame_set_quality(lame, (int)this.Quality);
|
|
|
|
|
|
}
|
2011-10-25 04:47:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|