xyosc/signalprocessing/signalprocessing.go

15 lines
239 B
Go
Raw Normal View History

2025-01-16 22:19:56 +01:00
package signalprocessing
import (
"xyosc/audio"
"xyosc/config"
"github.com/mjibson/go-dsp/window"
)
var HannWindow []float64
func Init() {
2025-01-16 22:22:39 +01:00
HannWindow = window.Hann(int(config.Config.ReadBufferSize / audio.SampleSizeInBytes / 2))
2025-01-16 22:19:56 +01:00
}