==============================================================================
| 18 | |
| 19 | //============================================================================== |
| 20 | SpectrumComponent::SpectrumComponent() |
| 21 | : mStyle(1), mDrawPeak(true), mBinWidth(44100.0f / 2048.0f), numberOfBins(1024) |
| 22 | { |
| 23 | spectrumData.fill(0.0f); |
| 24 | displayData.fill(0.0f); // Initialize display data |
| 25 | maxData.fill(0.0f); |
| 26 | |
| 27 | startTimerHz(60); // Start a 60 FPS timer for smooth animation |
| 28 | } |
| 29 | |
| 30 | SpectrumComponent::SpectrumComponent(int style, bool drawPeak) |
| 31 | : mStyle(style), mDrawPeak(drawPeak), mBinWidth(44100.0f / 2048.0f), numberOfBins(1024) |
nothing calls this directly
no outgoing calls
no test coverage detected