diff options
author | Ben Loftis <ben@glw.com> | 2012-12-12 18:28:40 +0000 |
---|---|---|
committer | Ben Loftis <ben@glw.com> | 2012-12-12 18:28:40 +0000 |
commit | 8e8b296bb424972d2cddba4ef56fbdb3388fb36d (patch) | |
tree | 0556fa37a354cb9aed9d4d05b86aa91d6097c22f /libs/ardour/audio_playlist.cc | |
parent | f1521f241c386d0b0b80eb112368cbd95217ffc8 (diff) |
muted regions should be totally ignored during playlist read()
git-svn-id: svn://localhost/ardour2/branches/3.0@13649 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_playlist.cc')
-rw-r--r-- | libs/ardour/audio_playlist.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/audio_playlist.cc b/libs/ardour/audio_playlist.cc index c1b6bb6e6d..fe13fe4e68 100644 --- a/libs/ardour/audio_playlist.cc +++ b/libs/ardour/audio_playlist.cc @@ -207,6 +207,10 @@ AudioPlaylist::read (Sample *buf, Sample *mixdown_buffer, float *gain_buffer, fr for (RegionList::iterator i = all->begin(); i != all->end(); ++i) { boost::shared_ptr<AudioRegion> ar = boost::dynamic_pointer_cast<AudioRegion> (*i); + /* muted regions don't figure into it at all */ + if ( ar->muted() ) + continue; + /* Work out which bits of this region need to be read; first, trim to the range we are reading... */ |