mirror of
https://github.com/make-42/xyosc
synced 2025-01-19 02:57:34 +01:00
15 lines
234 B
Go
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)
|
||
|
}
|