fix audioData buffer make()

This commit is contained in:
DataHoarder 2022-01-26 14:33:45 +01:00
parent 427588839f
commit 8b35eadd7d

View file

@ -135,7 +135,7 @@ func (g *Gaborator) gaborTransform(audioData []float32) {
func (g *Gaborator) GaborTransform(source chan float32) [][]float32 {
audioData := make([]float32, g.audioBlockSize)
audioData := make([]float32, 0, g.audioBlockSize)
for {
f, more := <-source