diff options
author | Carl Hetherington <carl@carlh.net> | 2009-08-23 19:42:01 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-08-23 19:42:01 +0000 |
commit | c91da28eb2552c4270e7f07026ee9609c3af717e (patch) | |
tree | b884c0d65bae5118bfd1f8326e648721aec36ce4 /gtk2_ardour/audio_streamview.h | |
parent | dffd30baf9f9db9310ddf82a5a7d05f96354acd6 (diff) |
Some improvements to performance with crossfades: don't recompute a whole track's crossfade curves
when one region is moved and the display is overlaid; use a std::map for an AudioStreamView's crossfades
list so that add_crossfade can find whether a CrossfadeView already exists without looking through
the whole list.
git-svn-id: svn://localhost/ardour2/branches/3.0@5571 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_streamview.h')
-rw-r--r-- | gtk2_ardour/audio_streamview.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/audio_streamview.h b/gtk2_ardour/audio_streamview.h index 1c5265f193..19254c0312 100644 --- a/gtk2_ardour/audio_streamview.h +++ b/gtk2_ardour/audio_streamview.h @@ -107,7 +107,7 @@ class AudioStreamView : public StreamView double _amplitude_above_axis; - typedef std::list<CrossfadeView*> CrossfadeViewList; + typedef std::map<boost::shared_ptr<ARDOUR::Crossfade>, CrossfadeView*> CrossfadeViewList; CrossfadeViewList crossfade_views; bool crossfades_visible; |