mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
CUERipper update;
CTDB xml interface; Minor bugfixes; Version 2.0.6-2.0.7
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user