Fix spectral analysis of regions.

git-svn-id: svn://localhost/ardour2/branches/3.0@12122 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-04-30 13:45:36 +00:00
parent 0b0d252acf
commit 10ee558254
1 changed files with 1 additions and 0 deletions

View File

@ -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)