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:
Grigory Chudov
2018-03-23 19:26:26 -04:00
parent 8a5946ae89
commit 16fccfe5c9
71 changed files with 4530 additions and 4576 deletions

View File

@@ -8,7 +8,20 @@ using CUETools.Codecs;
namespace CUETools.Codecs.libFLAC
{
[AudioDecoderClass("libFLAC", "flac", 1)]
public class Settings : AudioDecoderSettings
{
public override string Extension => "flac";
public override string Name => "libFLAC";
public override Type DecoderType => typeof(Reader);
public override int Priority => 1;
public Settings() : base() { }
}
[AudioDecoderClass(typeof(Settings))]
public unsafe class Reader : IAudioSource
{
public Reader(string path, Stream IO)