xyosc/signalprocessing/signalprocessing.go
2025-01-16 22:19:56 +01:00

15 lines
234 B
Go

package signalprocessing
import (
"xyosc/audio"
"xyosc/config"
"github.com/mjibson/go-dsp/window"
)
var HannWindow []float64
func Init() {
HannWindow = window.Hann(config.Config.ReadBufferSize / audio.SampleSizeInBytes / 2)
}