chore: add Apache License 2.0 and ignore build directory

This commit is contained in:
2026-07-16 17:24:50 +03:00
parent 45e4bce2a0
commit 7affa0dbc8
23 changed files with 1814 additions and 157 deletions
+4
View File
@@ -31,6 +31,10 @@ func DurationSamples(duration time.Duration) int {
return int(duration * SampleRate / time.Second)
}
func SamplesDuration(samples int) time.Duration {
return time.Duration(samples) * time.Second / SampleRate
}
func RMSDBFS(samples []float32) float64 {
if len(samples) == 0 {
return math.Inf(-1)