[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 <kode54@gmail.com>
This commit is contained in:
parent
6b381f3d08
commit
ec18d0b260
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ extern NSString *CogPlaybackDidStopNotficiation;
|
||||||
_analyzer.min_freq = 10;
|
_analyzer.min_freq = 10;
|
||||||
_analyzer.max_freq = 22000;
|
_analyzer.max_freq = 22000;
|
||||||
_analyzer.peak_hold = 10;
|
_analyzer.peak_hold = 10;
|
||||||
_analyzer.view_width = 11;
|
_analyzer.view_width = 1000;
|
||||||
_analyzer.fractional_bars = 1;
|
_analyzer.fractional_bars = 1;
|
||||||
_analyzer.octave_bars_step = 2;
|
_analyzer.octave_bars_step = 2;
|
||||||
_analyzer.max_of_stereo_data = 1;
|
_analyzer.max_of_stereo_data = 1;
|
||||||
|
|
Loading…
Reference in a new issue