shared_ptr<Region> fixes
git-svn-id: svn://localhost/ardour2/trunk@857 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
3d1c0d729a
commit
c871ca6d98
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user