We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba92e36 commit e5bf964Copy full SHA for e5bf964
src/SoundFingerprinting/Audio/IAudioService.cs
@@ -29,5 +29,12 @@ public interface IAudioService
29
/// <param name="sampleRate">Target sample rate</param>
30
/// <returns>Audio samples</returns>
31
AudioSamples ReadMonoSamplesFromFile(string pathToSourceFile, int sampleRate);
32
+
33
+ /// <summary>
34
+ /// Returns a usually accurate estimate for the length of the file
35
+ /// </summary>
36
+ /// <param name="pathToSourceFile">Path to audio source to get it's length from</param>
37
+ /// <returns>Length in seconds</returns>
38
+ float GetLengthInSeconds(string pathToSourceFile);
39
}
40
0 commit comments