Add small channel buffer
This commit is contained in:
parent
f374a92568
commit
a16b32f7ec
|
@ -47,7 +47,7 @@ func (g *Gaborator) gaborTransform(audioData []float32) {
|
||||||
func (g *Gaborator) GetChannel() chan []float32 {
|
func (g *Gaborator) GetChannel() chan []float32 {
|
||||||
|
|
||||||
if g.coefficientOutputChannel == nil {
|
if g.coefficientOutputChannel == nil {
|
||||||
g.coefficientOutputChannel = make(chan []float32)
|
g.coefficientOutputChannel = make(chan []float32, 1024)
|
||||||
}
|
}
|
||||||
|
|
||||||
return g.coefficientOutputChannel
|
return g.coefficientOutputChannel
|
||||||
|
|
|
@ -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`
|
||||||
|
|
Loading…
Reference in a new issue