Update region peak amplitude when the region is trimmed (#3931).
[ardour.git] / gtk2_ardour / audio_region_editor.h
index f3accaf1152d85119a0acd36a640ab072108a142..5c9e56d92373bcab9589959416ac03d1617c8fcf 100644 (file)
@@ -37,6 +37,7 @@
 #include <libgnomecanvas/libgnomecanvas.h>
 
 #include "pbd/signals.h"
+#include "pbd/crossthread.h"
 
 #include "audio_clock.h"
 #include "ardour_dialog.h"
@@ -73,11 +74,11 @@ class AudioRegionEditor : public RegionEditor
        Gtk::Label _peak_amplitude_label;
        Gtk::Entry _peak_amplitude;
 
-       bool _peak_amplitude_found;
        pthread_t _peak_amplitude_thread_handle;
        void peak_amplitude_found (double);
        PBD::Signal1<void, double> PeakAmplitudeFound;
        PBD::ScopedConnection _peak_amplitude_connection;
+       CrossThreadChannel _peak_channel;
 };
 
 #endif /* __gtk_ardour_audio_region_edit_h__ */