2018-03-26 20:11:49 -04:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
|
|
|
|
namespace CUETools.Codecs.MACLib
|
|
|
|
|
|
{
|
|
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
|
public class DecoderSettings : IAudioDecoderSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
#region IAudioDecoderSettings implementation
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public string Extension => "ape";
|
|
|
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public string Name => "MACLib";
|
|
|
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
|
|
|
|
|
public Type DecoderType => typeof(AudioDecoder);
|
|
|
|
|
|
|
|
|
|
|
|
[Browsable(false)]
|
2018-04-01 20:42:31 -04:00
|
|
|
|
public int Priority => 2;
|
2018-03-26 20:11:49 -04:00
|
|
|
|
|
|
|
|
|
|
public IAudioDecoderSettings Clone()
|
|
|
|
|
|
{
|
|
|
|
|
|
return MemberwiseClone() as IAudioDecoderSettings;
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
public DecoderSettings()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Init();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[DisplayName("Version")]
|
|
|
|
|
|
[Description("Library version")]
|
|
|
|
|
|
public string Version => Marshal.PtrToStringAnsi(MACLibDll.GetVersionString());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|