refactor: centralize common strings, paths, and default values into a new Constants class.
This commit is contained in:
@@ -22,11 +22,11 @@ public static class LatencyTestCommand
|
||||
}
|
||||
|
||||
AnsiConsole.MarkupLine("Generating 1-second silent audio file for testing...");
|
||||
var testWavPath = Path.Combine(Path.GetTempPath(), "toak_latency_test.wav");
|
||||
var testWavPath = Constants.Paths.LatencyTestWavFile;
|
||||
|
||||
var pInfo = new ProcessStartInfo
|
||||
{
|
||||
FileName = "ffmpeg",
|
||||
FileName = Constants.Commands.AudioFfmpeg,
|
||||
Arguments = $"-f lavfi -i anullsrc=r=44100:cl=mono -t 1 -y {testWavPath}",
|
||||
UseShellExecute = false,
|
||||
CreateNoWindow = true,
|
||||
|
||||
Reference in New Issue
Block a user