From 6d1ed21bae3e3b19d0f1dbf245395eb81ceddb4b Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Wed, 1 Jun 2022 13:45:34 -0500 Subject: [PATCH] Fix unit tests and comment --- .../TestAudioFingerprinting.cs | 4 ++-- .../ScheduledTasks/FingerprinterTask.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs index a2ec132..72279ac 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs @@ -70,11 +70,11 @@ public class TestFPCalc Assert.True(lhs.Valid); Assert.Equal(0, lhs.IntroStart); - Assert.Equal(17.92, lhs.IntroEnd); + Assert.Equal(17.792, lhs.IntroEnd); Assert.True(rhs.Valid); Assert.Equal(0, rhs.IntroStart); - Assert.Equal(22.784, rhs.IntroEnd); + Assert.Equal(22.656, rhs.IntroEnd); } private QueuedEpisode queueEpisode(string path) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs index 9538d71..11bc351 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs @@ -21,7 +21,7 @@ public class FingerprinterTask : IScheduledTask /// /// Maximum number of bits (out of 32 total) that can be different between segments before they are considered dissimilar. - /// 8 bits means the audio must be at least 75% similar (1 - 8 / 32). + /// 6 bits means the audio must be at least 81% similar (1 - 6 / 32). /// private const double MaximumDifferences = 6;