diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-08 21:02:37 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-12-08 21:02:37 +0000 |
commit | f17661208686f7237efc902c61028462af75a240 (patch) | |
tree | 0443d126054643c476b63a8be4722c13320d3ce4 /libs/ardour/audioregion.cc | |
parent | 32ac2049fe5a873853ac3c3b6dcb682150222dd3 (diff) |
move display of silence for strip-silence into regionviews, along with text to describe impact on the region. this doesn't actually make strip-silence work any better, but the display is improving
git-svn-id: svn://localhost/ardour2/branches/3.0@8224 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audioregion.cc')
-rw-r--r-- | libs/ardour/audioregion.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index f3ae05f1b1..84709d7bb2 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -1498,10 +1498,10 @@ in this and future transient-detection operations.\n\ * * @param threshold Threshold below which signal is considered silence (as a sample value) * @param min_length Minimum length of silent period to be reported. - * @return Silent periods; first of pair is the offset within the region, second is the length of the period + * @return Silent intervals */ -std::list<std::pair<frameoffset_t, framecnt_t> > +AudioIntervalResult AudioRegion::find_silence (Sample threshold, framecnt_t min_length, InterThreadInfo& itt) const { framecnt_t const block_size = 64 * 1024; @@ -1510,8 +1510,8 @@ AudioRegion::find_silence (Sample threshold, framecnt_t min_length, InterThreadI framepos_t pos = _start; framepos_t const end = _start + _length - 1; - - std::list<std::pair<frameoffset_t, framecnt_t> > silent_periods; + + AudioIntervalResult silent_periods; bool in_silence = false; frameoffset_t silence_start = 0; |