mirror of
https://github.com/make-42/xyosc
synced 2025-01-18 18:57:10 +01:00
15 lines
239 B
Go
15 lines
239 B
Go
package signalprocessing
|
|
|
|
import (
|
|
"xyosc/audio"
|
|
"xyosc/config"
|
|
|
|
"github.com/mjibson/go-dsp/window"
|
|
)
|
|
|
|
var HannWindow []float64
|
|
|
|
func Init() {
|
|
HannWindow = window.Hann(int(config.Config.ReadBufferSize / audio.SampleSizeInBytes / 2))
|
|
}
|