From ec18d0b260ccdccd8a19d2cbe02138b40915ef59 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 28 May 2022 18:31:09 -0700 Subject: [PATCH] [Visualization] Fix crash with frequency mode The frequency mode, apparently the default, doesn't like that the code was setting the width of the spectrum data to 11 instead of the default 1000. This was causing it to overwrite freed memory when the spectrum started processing audio. Signed-off-by: Christopher Snowhill --- Visualization/SpectrumView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Visualization/SpectrumView.m b/Visualization/SpectrumView.m index a745a29ab..032427296 100644 --- a/Visualization/SpectrumView.m +++ b/Visualization/SpectrumView.m @@ -160,7 +160,7 @@ extern NSString *CogPlaybackDidStopNotficiation; _analyzer.min_freq = 10; _analyzer.max_freq = 22000; _analyzer.peak_hold = 10; - _analyzer.view_width = 11; + _analyzer.view_width = 1000; _analyzer.fractional_bars = 1; _analyzer.octave_bars_step = 2; _analyzer.max_of_stereo_data = 1;