Skip to content

Commit

Permalink
Init spectrogram filter outputs to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansuchocki committed Jan 19, 2023
1 parent 70271e8 commit 398af87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/display/spectrogram.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ void spectrogram_init(unsigned width, unsigned height, unsigned left, unsigned t
sgam_left = left;
sgam_top = top;
smoothed_values = (double *)malloc(sizeof(double) * width);
memset(smoothed_values, 0, sizeof(double) * width);
}

void spectrogram_render_bg(fb_buf_t *fb)
Expand Down

0 comments on commit 398af87

Please sign in to comment.