Skip to content

Commit

Permalink
Better log messages for audio2csv
Browse files Browse the repository at this point in the history
Also removes some out-dated app.config values
  • Loading branch information
atruskie committed Mar 21, 2018
1 parent 9cc7686 commit b67f6a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Acoustics.Tools/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<add key="AudioUtilityMp3SpltExeLinux" value="/usr/bin/mp3splt" />
<add key="AudioUtilitySoxExeLinux" value="/usr/bin/sox" />
<add key="AudioUtilityShntoolExeLinux" value="/usr/bin/shntool" />
<add key="AudioUtilityWav2PngExeLinux" value="/usr/local/bin/wav2png" />

</appSettings>
<connectionStrings></connectionStrings>
<runtime>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ public partial class AnalyseLongRecording
{
private const string ImagefileExt = "png";

private const string FinishedMessage = @"
###################################################
Finished processing audio file: {0}.
Output to directory: {1}
##### FINISHED FILE ###################################################
";

private static readonly ILog Log = LogManager.GetLogger(nameof(AnalyseLongRecording));

/// <summary>
Expand Down Expand Up @@ -361,7 +351,7 @@ public static void Execute(Arguments arguments)
LoggedConsole.WriteLine("\tNumber of events = " + eventsCount);
}

LoggedConsole.WriteLine(FinishedMessage, sourceAudio.Name, instanceOutputDirectory.FullName);
Log.Success($"Analysis Complete.\nSource={sourceAudio.Name}\nOutput={instanceOutputDirectory.FullName}");
}

public static T FindAndCheckAnalyser<T>(string analysisIdentifier, string partialIdentifier)
Expand Down
2 changes: 1 addition & 1 deletion tests/Acoustics.Test/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<add key="AudioUtilityMp3SpltExeLinux" value="/usr/bin/mp3splt" />
<add key="AudioUtilitySoxExeLinux" value="/usr/bin/sox" />
<add key="AudioUtilityShntoolExeLinux" value="/usr/bin/shntool" />
<add key="AudioUtilityWav2PngExeLinux" value="/usr/local/bin/wav2png" />


<!-- Default target sample rate -->
<!-- chose this value because it is simple fraction (4/5) of 22050Hz -->
Expand Down

0 comments on commit b67f6a9

Please sign in to comment.