1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

lower fft res on desktop

This commit is contained in:
Cameron Taylor 2024-06-06 20:46:12 -04:00
parent 4f0e77c974
commit c54c10f562

View file

@ -55,6 +55,13 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
{
@:privateAccess
analyzer = new SpectralAnalyzer(snd._channel.__source, 7, 0.1, 30);
#if desktop
// On desktop it uses FFT stuff that isn't as optimized as the direct browser stuff we use on HTML5
// So we want to manually change it!
analyzer.fftN = 512;
#end
// analyzer.maxDb = -35;
// analyzer.fftN = 2048;
}