mirror of
https://github.com/make-42/xyosc
synced 2025-01-18 10:47:10 +01:00
might be more efficient
This commit is contained in:
parent
b7dda87082
commit
6736338493
2
main.go
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user