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

@@ -27,8 +27,21 @@ using System.Runtime.InteropServices;
namespace CUETools.Codecs.WMA
{
[AudioDecoderClass("windows", "wma", 2)]
public class WMAReader : IAudioSource
public class DecoderSettings : AudioDecoderSettings
{
public override string Extension => "wma";
public override string Name => "windows";
public override Type DecoderType => typeof(AudioDecoder);
public override int Priority => 2;
public DecoderSettings() : base() { }
}
[AudioDecoderClass(typeof(DecoderSettings))]
public class AudioDecoder : IAudioSource
{
IWMSyncReader m_syncReader;
INSSBuffer m_pSample;
@@ -44,7 +57,7 @@ namespace CUETools.Codecs.WMA
Stream m_IO;
StreamWrapper m_streamWrapper;
public WMAReader(string path, Stream IO)
public AudioDecoder(string path, Stream IO)
{
m_path = path;
isValid(path);