fix audioData buffer make()
This commit is contained in:
parent
427588839f
commit
8b35eadd7d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue