2013-04-08 23:11:03 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.ComponentModel;
|
2018-03-23 19:26:26 -04:00
|
|
|
|
using Newtonsoft.Json;
|
2013-04-08 23:11:03 -04:00
|
|
|
|
|
|
|
|
|
|
namespace CUETools.Codecs
|
|
|
|
|
|
{
|
2018-03-23 19:26:26 -04:00
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
|
public class CommandLineEncoderSettings : AudioEncoderSettings
|
2013-04-08 23:11:03 -04:00
|
|
|
|
{
|
2018-03-23 19:26:26 -04:00
|
|
|
|
public override string Name => name;
|
|
|
|
|
|
|
|
|
|
|
|
public override string Extension => extension;
|
|
|
|
|
|
|
|
|
|
|
|
public override Type EncoderType => typeof(CommandLineEncoder);
|
|
|
|
|
|
|
|
|
|
|
|
public override bool Lossless => lossless;
|
|
|
|
|
|
|
|
|
|
|
|
public CommandLineEncoderSettings()
|
2013-04-08 23:11:03 -04:00
|
|
|
|
: base()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-03-23 19:26:26 -04:00
|
|
|
|
[JsonProperty]
|
|
|
|
|
|
public string name;
|
|
|
|
|
|
|
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
|
public string extension;
|
|
|
|
|
|
|
|
|
|
|
|
[JsonProperty]
|
|
|
|
|
|
public bool lossless;
|
|
|
|
|
|
|
2013-04-09 20:51:13 -04:00
|
|
|
|
[DefaultValue(null)]
|
2018-03-23 19:26:26 -04:00
|
|
|
|
[JsonProperty]
|
2013-04-09 20:51:13 -04:00
|
|
|
|
public string Path
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
set;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[DefaultValue(null)]
|
2018-03-23 19:26:26 -04:00
|
|
|
|
[JsonProperty]
|
2013-04-09 20:51:13 -04:00
|
|
|
|
public string Parameters
|
|
|
|
|
|
{
|
|
|
|
|
|
get;
|
|
|
|
|
|
set;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-03-23 19:26:26 -04:00
|
|
|
|
[JsonProperty]
|
2013-04-08 23:11:03 -04:00
|
|
|
|
public string SupportedModes
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return m_supported_modes;
|
|
|
|
|
|
}
|
|
|
|
|
|
set
|
|
|
|
|
|
{
|
|
|
|
|
|
m_supported_modes = value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|