diff options
author | Carl Hetherington <carl@carlh.net> | 2009-04-29 17:01:14 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-04-29 17:01:14 +0000 |
commit | 459c43951238fd771231f840733468b84079dcdc (patch) | |
tree | d04b98a7be7f6028bbce64efe151d6486c3376b2 /libs/ardour/ardour | |
parent | 7eba373a0f9e48f8f68ac613021748e08f42ec4d (diff) |
First cut of option to strip silence from audio regions, as per mantis #1623
git-svn-id: svn://localhost/ardour2/branches/3.0@5010 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/audioregion.h | 3 | ||||
-rw-r--r-- | libs/ardour/ardour/crossfade.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/ardour/audioregion.h b/libs/ardour/ardour/audioregion.h index 917578191f..b2e2aa3eef 100644 --- a/libs/ardour/ardour/audioregion.h +++ b/libs/ardour/ardour/audioregion.h @@ -106,7 +106,7 @@ class AudioRegion : public Region virtual nframes_t master_read_at (Sample *buf, Sample *mixdown_buf, float *gain_buf, sframes_t position, nframes_t cnt, uint32_t chan_n=0) const; - virtual nframes_t read_raw_internal (Sample*, sframes_t, nframes_t) const; + virtual nframes_t read_raw_internal (Sample*, sframes_t, nframes_t, int channel) const; XMLNode& state (bool); int set_state (const XMLNode&); @@ -162,6 +162,7 @@ class AudioRegion : public Region void resume_fade_out (); int get_transients (AnalysisFeatureList&, bool force_new = false); + std::list<std::pair<nframes_t, nframes_t> > find_silence (Sample, nframes_t) const; private: friend class RegionFactory; diff --git a/libs/ardour/ardour/crossfade.h b/libs/ardour/ardour/crossfade.h index bd3ee914f9..4afa38126c 100644 --- a/libs/ardour/ardour/crossfade.h +++ b/libs/ardour/ardour/crossfade.h @@ -170,7 +170,7 @@ class Crossfade : public ARDOUR::AudioRegion bool update (); protected: - nframes_t read_raw_internal (Sample*, sframes_t, nframes_t) const; + nframes_t read_raw_internal (Sample*, sframes_t, nframes_t, int) const; }; |