Cleanup IAudioDest; CompressionLevel is now part of AudioEncoderSettings.

FLAC encoders no longer offer non-subset compression levels by default.
This commit is contained in:
Grigory Chudov
2013-04-01 23:03:22 -04:00
parent 773c6d63fa
commit 9dd4897acc
44 changed files with 374 additions and 524 deletions

View File

@@ -27,21 +27,15 @@ namespace CUETools.DSP.Mixer
set { throw new NotSupportedException(); }
}
public int CompressionLevel
{
get { return 0; }
set { throw new NotSupportedException(); }
}
public object Settings
public AudioEncoderSettings Settings
{
get
{
return null;
return new AudioEncoderSettings();
}
set
{
if (value != null && value.GetType() != typeof(object))
if (value != null && value.GetType() != typeof(AudioEncoderSettings))
throw new Exception("Unsupported options " + value);
}
}