Add small channel buffer

This commit is contained in:
DataHoarder 2022-01-29 21:58:56 +01:00
parent f374a92568
commit a16b32f7ec
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ func (g *Gaborator) gaborTransform(audioData []float32) {
func (g *Gaborator) GetChannel() chan []float32 {
if g.coefficientOutputChannel == nil {
g.coefficientOutputChannel = make(chan []float32)
g.coefficientOutputChannel = make(chan []float32, 1024)
}
return g.coefficientOutputChannel

View file

@ -1,2 +1,2 @@
$ ffmpeg -i MooveKa_-_Rockabilly_Punk_Rock.mp3 -map 0:a:0 -ar 16000 -ac 1 -c:a pcm_f32le -f f32le test.raw
`$ ffmpeg -i MooveKa_-_Rockabilly_Punk_Rock.mp3 -map 0:a:0 -ar 16000 -ac 1 -c:a pcm_f32le -f f32le test.raw`