mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
virtualize audioregion, make crossfade IS-A audioregion
git-svn-id: svn://localhost/ardour2/trunk@1889 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b99c6c6e1d
commit
48d078b975
19 changed files with 526 additions and 134 deletions
|
|
@ -348,9 +348,11 @@ AudioStreamView::add_crossfade (boost::shared_ptr<Crossfade> crossfade)
|
|||
}
|
||||
|
||||
void
|
||||
AudioStreamView::remove_crossfade (boost::shared_ptr<Crossfade> xfade)
|
||||
AudioStreamView::remove_crossfade (boost::shared_ptr<Region> r)
|
||||
{
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &AudioStreamView::remove_crossfade), xfade));
|
||||
ENSURE_GUI_THREAD (bind (mem_fun (*this, &AudioStreamView::remove_crossfade), r));
|
||||
|
||||
boost::shared_ptr<Crossfade> xfade = boost::dynamic_pointer_cast<Crossfade> (r);
|
||||
|
||||
for (list<CrossfadeView*>::iterator i = crossfade_views.begin(); i != crossfade_views.end(); ++i) {
|
||||
if ((*i)->crossfade == xfade) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue