diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-09 18:17:36 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-09 18:17:36 +0000 |
commit | ebf3762fa91d911af411f1b5c68e3c67f2c47170 (patch) | |
tree | a39eacadb7c1010354ad6776a75d93cee4580c71 /gtk2_ardour/region_view.h | |
parent | 0a62044c2c51b38c900ed75d4037e6093901f387 (diff) |
fix computation of silence text, and its display. it is still not on top of the canvas, which is a small problem
git-svn-id: svn://localhost/ardour2/branches/3.0@8227 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_view.h')
-rw-r--r-- | gtk2_ardour/region_view.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/region_view.h b/gtk2_ardour/region_view.h index c291d60cf6..a96862f08a 100644 --- a/gtk2_ardour/region_view.h +++ b/gtk2_ardour/region_view.h @@ -112,10 +112,9 @@ class RegionView : public TimeAxisViewItem void trim_contents (framepos_t, bool, bool); virtual void thaw_after_trim (); - void set_silent_frames (const ARDOUR::AudioIntervalResult&); + void set_silent_frames (const ARDOUR::AudioIntervalResult&, double threshold); void drop_silent_frames (); void hide_silent_frames (); - void show_silent_frames (); protected: @@ -173,11 +172,12 @@ class RegionView : public TimeAxisViewItem */ std::list<ArdourCanvas::SimpleRect*> _coverage_frames; - /** a list of rectangles which are used in stacked display mode to colour - different bits of regions according to whether or not they are the one - that will be played at any given time. + /** a list of rectangles used to show silent segments */ std::list<ArdourCanvas::SimpleRect*> _silent_frames; + /** a list of rectangles used to show the current silence threshold + */ + std::list<ArdourCanvas::SimpleRect*> _silent_threshold_frames; /** a text item to display strip silence statistics */ ArdourCanvas::NoEventText* _silence_text; |