mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Code cleanup; Reader classes renamed to Decoders, Writers to Encoders, every Decoder must have a corresponding Settings class now just like Encoders. UserDefinedEncoders renamed to CommandLineEncoders, etc.
This commit is contained in:
@@ -2,17 +2,37 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace CUETools.Codecs
|
||||
{
|
||||
public class UserDefinedEncoderSettings : AudioEncoderSettings
|
||||
[JsonObject(MemberSerialization.OptIn)]
|
||||
public class CommandLineEncoderSettings : AudioEncoderSettings
|
||||
{
|
||||
public UserDefinedEncoderSettings()
|
||||
public override string Name => name;
|
||||
|
||||
public override string Extension => extension;
|
||||
|
||||
public override Type EncoderType => typeof(CommandLineEncoder);
|
||||
|
||||
public override bool Lossless => lossless;
|
||||
|
||||
public CommandLineEncoderSettings()
|
||||
: base()
|
||||
{
|
||||
}
|
||||
|
||||
[JsonProperty]
|
||||
public string name;
|
||||
|
||||
[JsonProperty]
|
||||
public string extension;
|
||||
|
||||
[JsonProperty]
|
||||
public bool lossless;
|
||||
|
||||
[DefaultValue(null)]
|
||||
[JsonProperty]
|
||||
public string Path
|
||||
{
|
||||
get;
|
||||
@@ -20,12 +40,14 @@ namespace CUETools.Codecs
|
||||
}
|
||||
|
||||
[DefaultValue(null)]
|
||||
[JsonProperty]
|
||||
public string Parameters
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[JsonProperty]
|
||||
public string SupportedModes
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user