diff options
author | David Robillard <d@drobilla.net> | 2006-08-10 03:04:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-08-10 03:04:13 +0000 |
commit | d4dd338beb813bcfe7470729cf6611aeea55cfa4 (patch) | |
tree | 7334c3f5811bcf1976c1687d346d64603232732b /gtk2_ardour/analysis_window.cc | |
parent | ae95684d225bb5725211656859e3d801045e05f3 (diff) |
- Fixed a buffer size bug when ~/.ardour2 doesn't exist (can't load configuration), if in a hacky way
- Removed useless workbuf/conversion_buffers (same thing), uneeded with libsndfile
git-svn-id: svn://localhost/ardour2/trunk@781 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/analysis_window.cc')
-rw-r--r-- | gtk2_ardour/analysis_window.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/analysis_window.cc b/gtk2_ardour/analysis_window.cc index f742afd727..24c6cc4fb8 100644 --- a/gtk2_ardour/analysis_window.cc +++ b/gtk2_ardour/analysis_window.cc @@ -221,7 +221,6 @@ AnalysisWindow::analyze_data (Gtk::Button *button) Sample *buf = (Sample *) malloc(sizeof(Sample) * fft_graph.windowSize()); Sample *mixbuf = (Sample *) malloc(sizeof(Sample) * fft_graph.windowSize()); float *gain = (float *) malloc(sizeof(float) * fft_graph.windowSize()); - char *work = (char *) malloc(sizeof(char) * fft_graph.windowSize()); Selection s = PublicEditor::instance().get_selection(); TimeSelection ts = s.time; @@ -261,7 +260,7 @@ AnalysisWindow::analyze_data (Gtk::Button *button) n = (*j).length() - i; } - n = pl->read(buf, mixbuf, gain, work, (*j).start + i, n); + n = pl->read(buf, mixbuf, gain, (*j).start + i, n); if ( n < fft_graph.windowSize()) { for (int j = n; j < fft_graph.windowSize(); j++) { @@ -301,7 +300,7 @@ AnalysisWindow::analyze_data (Gtk::Button *button) n = arv->region().length() - i; } - n = arv->audio_region().read_at(buf, mixbuf, gain, work, 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++) { @@ -331,7 +330,6 @@ AnalysisWindow::analyze_data (Gtk::Button *button) free(buf); free(mixbuf); - free(work); track_list_ready = true; } /* end lock */ |