summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_region_view.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-09-12 19:10:04 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-09-12 19:10:04 +0000
commit71df552f0a85858f2119adafcbd70fc851444257 (patch)
tree77cc368bd4d4c2d82b4a9622c8a10b24116f4e04 /gtk2_ardour/audio_region_view.cc
parent0a38cee852134ff5d2632c02517e2a00e2c52ca2 (diff)
make big clock be on top ALWAYS; more design fixes for async peak building; fix up peakfile name screw up but WITHOUT back-compatibility
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2461 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_region_view.cc')
-rw-r--r--gtk2_ardour/audio_region_view.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc
index 794f8dc34b..44330e0af5 100644
--- a/gtk2_ardour/audio_region_view.cc
+++ b/gtk2_ardour/audio_region_view.cc
@@ -783,10 +783,14 @@ AudioRegionView::create_waves ()
wave_caches.push_back (WaveView::create_cache ());
if (wait_for_data) {
+
if (audio_region()->source(n)->peaks_ready (bind (mem_fun(*this, &AudioRegionView::peaks_ready_handler), n), data_ready_connection)) {
create_one_wave (n, true);
} else {
+ // we'll get a PeaksReady signal from the source in the future
+ // and will call create_one_wave(n) then.
}
+
} else {
create_one_wave (n, true);
}