This commit is contained in:
chudov
2009-08-06 13:03:02 +00:00
parent f0c0167ef0
commit 8f9a7b9e1e
25 changed files with 6067 additions and 3775 deletions

View File

@@ -81,11 +81,10 @@ namespace CUETools.Processor
CUEToolsFormat fmt;
if (!extension.StartsWith(".") || !config.formats.TryGetValue(extension.Substring(1), out fmt))
throw new Exception("Unsupported audio type: " + path);
string encoderName = audioEncoderType == AudioEncoderType.Lossless ? fmt.encoderLossless :
CUEToolsUDC encoder = audioEncoderType == AudioEncoderType.Lossless ? fmt.encoderLossless :
audioEncoderType == AudioEncoderType.Lossy ? fmt.encoderLossy :
null;
CUEToolsUDC encoder;
if (encoderName == null || !config.encoders.TryGetValue(encoderName, out encoder))
if (encoder == null)
throw new Exception("Unsupported audio type: " + path);
switch (encoder.className)
{