2018-03-25 17:24:27 -04:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using System;
|
2018-03-23 20:26:28 -04:00
|
|
|
|
using System.Collections.Generic;
|
2018-03-25 17:24:27 -04:00
|
|
|
|
using System.ComponentModel;
|
2018-03-23 20:26:28 -04:00
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace CUETools.Codecs.WAV
|
|
|
|
|
|
{
|
2018-03-25 17:24:27 -04:00
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
|
public class EncoderSettings : IAudioEncoderSettings
|
2018-03-23 20:26:28 -04:00
|
|
|
|
{
|
2018-03-25 17:24:27 -04:00
|
|
|
|
#region IAudioEncoderSettings implementation
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public string Extension => "wav";
|
2018-03-23 20:26:28 -04:00
|
|
|
|
|
2018-03-25 17:24:27 -04:00
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public string Name => "cuetools";
|
2018-03-23 20:26:28 -04:00
|
|
|
|
|
2018-03-25 17:24:27 -04:00
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public Type EncoderType => typeof(WAV.AudioEncoder);
|
2018-03-23 20:26:28 -04:00
|
|
|
|
|
2018-03-25 17:24:27 -04:00
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public bool Lossless => true;
|
2018-03-23 20:26:28 -04:00
|
|
|
|
|
2018-03-25 17:24:27 -04:00
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public int Priority => 10;
|
|
|
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public string SupportedModes => "";
|
|
|
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public string DefaultMode => "";
|
|
|
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
[DefaultValue("")]
|
|
|
|
|
|
public string EncoderMode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public AudioPCMConfig PCM { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public int BlockSize { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
[DefaultValue(4096)]
|
|
|
|
|
|
public int Padding { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public IAudioEncoderSettings Clone()
|
|
|
|
|
|
{
|
|
|
|
|
|
return MemberwiseClone() as IAudioEncoderSettings;
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
2018-03-23 20:26:28 -04:00
|
|
|
|
|
|
|
|
|
|
public EncoderSettings()
|
|
|
|
|
|
{
|
2018-03-25 17:24:27 -04:00
|
|
|
|
this.Init();
|
2018-03-23 20:26:28 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public EncoderSettings(AudioPCMConfig pcm)
|
|
|
|
|
|
{
|
2018-03-25 17:24:27 -04:00
|
|
|
|
this.Init(pcm);
|
2018-03-23 20:26:28 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|