mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-05 01:55:27 +00:00
Fix upper bound of frequency band calculation.
The "+1" somehow disappeared at some point...
This commit is contained in:
@ -29,7 +29,7 @@ auto Loudness::AverageRelative() const -> float
|
||||
void Loudness::SumBand(const std::array<float, SpectrumSamples>& spectrumSamples)
|
||||
{
|
||||
int start = SpectrumSamples * static_cast<int>(m_band) / 6;
|
||||
int end = SpectrumSamples * static_cast<int>(m_band) / 6;
|
||||
int end = SpectrumSamples * (static_cast<int>(m_band) + 1) / 6;
|
||||
|
||||
m_current = 0.0f;
|
||||
for (int sample = start; sample < end; sample++)
|
||||
|
||||
Reference in New Issue
Block a user