Force spectrum dashboard through reservoir

This commit is contained in:
Meta Vens 2026-05-25 23:02:44 +01:00
commit 0eb18b0c46
3 changed files with 21 additions and 12 deletions

View file

@ -29,7 +29,7 @@ public sealed class MimirAudioSpectrumAnalyzer
public MimirAudioSpectrumAnalyzer(int fftSize = 8192, int displayBandCount = 48)
{
this.fftSize = Math.Clamp(NextPowerOfTwo(Math.Max(MinimumFftSize, fftSize)), MinimumFftSize, MaximumFftSize);
this.displayBandCount = Math.Clamp(displayBandCount, 16, 96);
this.displayBandCount = Math.Clamp(displayBandCount, 16, 192);
spectrum = new Complex[this.fftSize];
}