From 67363384936dc1c41a72978e2dd5d1330ddbccd3 Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Thu, 16 Jan 2025 23:14:55 +0100 Subject: [PATCH] might be more efficient --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index b3205b5..3022d34 100644 --- a/main.go +++ b/main.go @@ -40,7 +40,7 @@ func (g *Game) Draw(screen *ebiten.Image) { var AY float32 var BX float32 var BY float32 - var numSamples = config.Config.ReadBufferSize / audio.SampleSizeInBytes / 2 + var numSamples = config.Config.ReadBufferSize / audio.SampleSizeInBytes * 4 var FFTBuffer = make([]float64, numSamples) if inpututil.IsKeyJustPressed(ebiten.KeyF) { config.SingleChannel = !config.SingleChannel