mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Cleanup IAudioDest; CompressionLevel is now part of AudioEncoderSettings.
FLAC encoders no longer offer non-subset compression levels by default.
This commit is contained in:
@@ -22,28 +22,15 @@ namespace CUETools.Codecs.LAME
|
||||
private long bytesWritten = 0;
|
||||
private bool inited = false;
|
||||
|
||||
public virtual int CompressionLevel
|
||||
public virtual AudioEncoderSettings Settings
|
||||
{
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
return new AudioEncoderSettings();
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value != 0)
|
||||
throw new Exception("unsupported compression level");
|
||||
}
|
||||
}
|
||||
|
||||
public virtual object Settings
|
||||
{
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value != null && value.GetType() != typeof(object))
|
||||
if (value != null && value.GetType() != typeof(AudioEncoderSettings))
|
||||
throw new Exception("Unsupported options " + value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user