mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
tidying up
This commit is contained in:
@@ -66,7 +66,6 @@ namespace CUETools.FLACCL.cmd
|
|||||||
Console.SetOut(Console.Error);
|
Console.SetOut(Console.Error);
|
||||||
|
|
||||||
var settings = new FLACCLWriterSettings();
|
var settings = new FLACCLWriterSettings();
|
||||||
DateTime start = DateTime.Now;
|
|
||||||
TimeSpan lastPrint = TimeSpan.FromMilliseconds(0);
|
TimeSpan lastPrint = TimeSpan.FromMilliseconds(0);
|
||||||
bool debug = false, quiet = false;
|
bool debug = false, quiet = false;
|
||||||
string stereo_method = null;
|
string stereo_method = null;
|
||||||
@@ -258,8 +257,11 @@ namespace CUETools.FLACCL.cmd
|
|||||||
Console.WriteLine("File Info : {0}kHz; {1} channel; {2} bit; {3}", audioSource.PCM.SampleRate, audioSource.PCM.ChannelCount, audioSource.PCM.BitsPerSample, TimeSpan.FromSeconds(audioSource.Length * 1.0 / audioSource.PCM.SampleRate));
|
Console.WriteLine("File Info : {0}kHz; {1} channel; {2} bit; {3}", audioSource.PCM.SampleRate, audioSource.PCM.ChannelCount, audioSource.PCM.BitsPerSample, TimeSpan.FromSeconds(audioSource.Length * 1.0 / audioSource.PCM.SampleRate));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DateTime start = DateTime.Now;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
audioDest.Write(buff);
|
||||||
|
start = DateTime.Now;
|
||||||
while (audioSource.Read(buff, -1) != 0)
|
while (audioSource.Read(buff, -1) != 0)
|
||||||
{
|
{
|
||||||
audioDest.Write(buff);
|
audioDest.Write(buff);
|
||||||
@@ -280,7 +282,6 @@ namespace CUETools.FLACCL.cmd
|
|||||||
}
|
}
|
||||||
audioDest.Close();
|
audioDest.Close();
|
||||||
}
|
}
|
||||||
#if DEBUG
|
|
||||||
catch (OpenCLNet.OpenCLBuildException ex)
|
catch (OpenCLNet.OpenCLBuildException ex)
|
||||||
{
|
{
|
||||||
Console.Error.Write("\r \r");
|
Console.Error.Write("\r \r");
|
||||||
@@ -290,7 +291,7 @@ namespace CUETools.FLACCL.cmd
|
|||||||
audioSource.Close();
|
audioSource.Close();
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
#else
|
#if !DEBUG
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Console.Error.Write("\r \r");
|
Console.Error.Write("\r \r");
|
||||||
|
|||||||
Reference in New Issue
Block a user