summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_region_editor.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-10-28 20:01:26 +0000
committerCarl Hetherington <carl@carlh.net>2010-10-28 20:01:26 +0000
commitdb5c8c9791bc42611e3150d6f8861300b32a1cbf (patch)
tree4fde6c91f85f8a2bcf1b12093884db6b51e6c592 /gtk2_ardour/audio_region_editor.h
parente88f7f6b55142860155e06b5d92c6693414816e7 (diff)
Add region peak amplitude to region editor.
git-svn-id: svn://localhost/ardour2/branches/3.0@7937 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_region_editor.h')
-rw-r--r--gtk2_ardour/audio_region_editor.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/audio_region_editor.h b/gtk2_ardour/audio_region_editor.h
index ee7d6bd54a..f3accaf115 100644
--- a/gtk2_ardour/audio_region_editor.h
+++ b/gtk2_ardour/audio_region_editor.h
@@ -53,7 +53,10 @@ class AudioRegionEditor : public RegionEditor
{
public:
AudioRegionEditor (ARDOUR::Session*, boost::shared_ptr<ARDOUR::AudioRegion>);
+ ~AudioRegionEditor ();
+ void peak_amplitude_thread ();
+
private:
void region_changed (PBD::PropertyChange const &);
@@ -66,6 +69,15 @@ class AudioRegionEditor : public RegionEditor
Gtk::Label gain_label;
Gtk::Adjustment gain_adjustment;
Gtk::SpinButton gain_entry;
+
+ 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;
};
#endif /* __gtk_ardour_audio_region_edit_h__ */