might be more efficient

This commit is contained in:
Louis Dalibard 2025-01-16 23:14:55 +01:00
parent b7dda87082
commit 6736338493

View File

@ -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