From 10ee558254802189bf4d82255e0439b45e92bb87 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 30 Apr 2012 13:45:36 +0000 Subject: Fix spectral analysis of regions. git-svn-id: svn://localhost/ardour2/branches/3.0@12122 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/analysis_window.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/analysis_window.cc b/gtk2_ardour/analysis_window.cc index afa277e8e4..c4948f5092 100644 --- a/gtk2_ardour/analysis_window.cc +++ b/gtk2_ardour/analysis_window.cc @@ -334,6 +334,7 @@ AnalysisWindow::analyze_data (Gtk::Button */*button*/) n = length - x; } + memset (buf, 0, n * sizeof (Sample)); n = arv->audio_region()->read_at(buf, mixbuf, gain, arv->region()->position() + x, n, channel); if (n == 0) -- cgit v1.2.3