test(core/browser/platform): 26 extreme RED/GREEN TDD cycles and full regression hardening (3,235 PASS)
This commit is contained in:
parent
bcd242691f
commit
8677853822
100 changed files with 4814 additions and 333 deletions
|
|
@ -25,6 +25,11 @@ public sealed class AudioNormalizer
|
|||
|
||||
public async Task<string> NormalizeAudioAsync(string ffmpeg, string inputFile, string outputFile, LoudnessSpec spec, CancellationToken ct)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(inputFile)) throw new ArgumentException("입력 파일 경로가 유효하지 않습니다.", nameof(inputFile));
|
||||
if (string.IsNullOrWhiteSpace(outputFile)) throw new ArgumentException("출력 파일 경로가 유효하지 않습니다.", nameof(outputFile));
|
||||
if (string.Equals(Path.GetFullPath(inputFile), Path.GetFullPath(outputFile), StringComparison.OrdinalIgnoreCase))
|
||||
throw new ArgumentException("입력 파일과 출력 파일 경로가 동일할 수 없습니다. 원본 손상을 방지하기 위해 별도의 출력 경로를 지정해야 합니다.");
|
||||
|
||||
// Pass 1: Measure loudness
|
||||
var iStr = spec.TargetLufs.ToString("F1", CultureInfo.InvariantCulture);
|
||||
var tpStr = spec.TruePeak.ToString("F1", CultureInfo.InvariantCulture);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue