CUERipper update;

CTDB xml interface;
Minor bugfixes;
Version 2.0.6-2.0.7
This commit is contained in:
chudov
2010-03-20 07:09:07 +00:00
parent ff3259e08a
commit f01d0b5241
74 changed files with 4203 additions and 1392 deletions

View File

@@ -31,11 +31,20 @@ namespace CUETools.Processor
return new UserDefinedReader(path, IO, decoder.path, decoder.parameters);
if (decoder.type == null)
throw new Exception("Unsupported audio type: " + path);
object src = Activator.CreateInstance(decoder.type, path, IO);
if (src == null || !(src is IAudioSource))
throw new Exception("Unsupported audio type: " + path + ": " + decoder.type.FullName);
return src as IAudioSource;
try
{
object src = Activator.CreateInstance(decoder.type, path, IO);
if (src == null || !(src is IAudioSource))
throw new Exception("Unsupported audio type: " + path + ": " + decoder.type.FullName);
return src as IAudioSource;
}
catch (System.Reflection.TargetInvocationException ex)
{
if (ex.InnerException == null)
throw ex;
throw ex.InnerException;
}
}
public static IAudioSource GetAudioSource(string path, Stream IO, CUEConfig config)