diff options
Diffstat (limited to 'gtk2_ardour/analysis_window.cc')
-rw-r--r-- | gtk2_ardour/analysis_window.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/analysis_window.cc b/gtk2_ardour/analysis_window.cc index 24c6cc4fb8..d89c106831 100644 --- a/gtk2_ardour/analysis_window.cc +++ b/gtk2_ardour/analysis_window.cc @@ -292,15 +292,15 @@ AnalysisWindow::analyze_data (Gtk::Button *button) jack_nframes_t i = 0; int n; - while ( i < arv->region().length() ) { + while ( i < arv->region()->length() ) { // TODO: What about stereo+ channels? composite all to one, I guess n = fft_graph.windowSize(); - if (i + n >= arv->region().length() ) { - n = arv->region().length() - i; + if (i + n >= arv->region()->length() ) { + n = arv->region()->length() - i; } - n = arv->audio_region().read_at(buf, mixbuf, gain, arv->region().position() + i, n); + n = arv->audio_region()->read_at(buf, mixbuf, gain, arv->region()->position() + i, n); if ( n < fft_graph.windowSize()) { for (int j = n; j < fft_graph.windowSize(); j++) { |