diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-10 16:49:15 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-09-10 16:49:15 -0400 |
commit | def273ea7124ca306b831247a173e948fc03895b (patch) | |
tree | c8d70f728833530014d342aa6fca9e6e652781fe /libs/ardour/diskstream.cc | |
parent | bfd66b2ea0155aea42eab4a889c0c662813e4fc7 (diff) |
queue disk buffer overwrite when playlist layering changes.
This is a first approximation. Doing this 100% efficiently is quite hard because it would require comparing the range
currently in the disk buffer and the range impacted by the layer change. I suspect this will work fine for the
foreseeable future
Diffstat (limited to 'libs/ardour/diskstream.cc')
-rw-r--r-- | libs/ardour/diskstream.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/diskstream.cc b/libs/ardour/diskstream.cc index 91859e76a3..f2da7982fe 100644 --- a/libs/ardour/diskstream.cc +++ b/libs/ardour/diskstream.cc @@ -386,6 +386,7 @@ Diskstream::use_playlist (boost::shared_ptr<Playlist> playlist) } _playlist->ContentsChanged.connect_same_thread (playlist_connections, boost::bind (&Diskstream::playlist_modified, this)); + _playlist->LayeringChanged.connect_same_thread (playlist_connections, boost::bind (&Diskstream::playlist_modified, this)); _playlist->DropReferences.connect_same_thread (playlist_connections, boost::bind (&Diskstream::playlist_deleted, this, boost::weak_ptr<Playlist>(_playlist))); _playlist->RangesMoved.connect_same_thread (playlist_connections, boost::bind (&Diskstream::playlist_ranges_moved, this, _1, _2)); } |