mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
[CUETools.Codecs.FLACCL] Fix constructor
The constructor parameters of Activator.CreateInstance() were updated in CUETools.Processor\AudioReadWrite.cs as of commits16fccfeande1f8906. The parameter "settings" was added in front of path and IO, which required an update to the order of constructor parameters in several codecs. - Fixes the following error message, when using FLACCL codec: Exception: Constructor on type 'CUETools.Codecs.FLACCL.AudioEncoder' not found. - This is a follow-up commit to18c6c1a- Resolves #82
This commit is contained in:
@@ -276,10 +276,9 @@ namespace CUETools.FLACCL.cmd
|
||||
{
|
||||
if (device_type != null)
|
||||
settings.DeviceType = (OpenCLDeviceType)(Enum.Parse(typeof(OpenCLDeviceType), device_type, true));
|
||||
encoder = new Codecs.FLACCL.AudioEncoder((output_file == "-" || output_file == "nul") ? "" : output_file,
|
||||
encoder = new Codecs.FLACCL.AudioEncoder(settings, (output_file == "-" || output_file == "nul") ? "" : output_file,
|
||||
output_file == "-" ? Console.OpenStandardOutput() :
|
||||
output_file == "nul" ? new NullStream() : null,
|
||||
settings);
|
||||
output_file == "nul" ? new NullStream() : null);
|
||||
settings = encoder.Settings as Codecs.FLACCL.EncoderSettings;
|
||||
encoder.FinalSampleCount = audioSource.Length;
|
||||
if (stereo_method != null)
|
||||
|
||||
Reference in New Issue
Block a user