mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-23 16:39:44 -06:00
28 lines
719 B
C#
28 lines
719 B
C#
#if(DEBUG)
|
|
|
|
using FileFlows.AudioNodes.Tests;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace AudioNodes.Tests;
|
|
|
|
public abstract class AudioTestBase : TestBase
|
|
{
|
|
protected NodeParameters GetNodeParameters(string file, bool isDirectory = false)
|
|
{
|
|
var args = new NodeParameters(file, Logger, isDirectory, string.Empty, new LocalFileService());
|
|
|
|
args.GetToolPathActual = (string tool) =>
|
|
{
|
|
if (tool.ToLowerInvariant() == "ffmpeg")
|
|
return ffmpeg;
|
|
if (tool.ToLowerInvariant() == "ffprobe")
|
|
return ffprobe;
|
|
return null;
|
|
};
|
|
args.TempPath = TempPath;
|
|
|
|
return args;
|
|
}
|
|
}
|
|
|
|
#endif |