X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fcrossfade.cc;h=7bbad9a1d1d5bf0f069845d487648c7ef619c353;hb=c35eae34c39c9962ac93110f67e9ea40f24834b6;hp=05ea7765f0a25bf7153b60bc2b13f1befc4a99ea;hpb=ad4919ce920a1a588c9ecd3d822dacfb93d74bb7;p=ardour.git diff --git a/libs/ardour/crossfade.cc b/libs/ardour/crossfade.cc index 05ea7765f0..7bbad9a1d1 100644 --- a/libs/ardour/crossfade.cc +++ b/libs/ardour/crossfade.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2003-2006 Paul Davis + Copyright (C) 2003-2006 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,16 +19,16 @@ #include -#include +#include "pbd/stacktrace.h" -#include -#include -#include -#include -#include -#include -#include -#include +#include "ardour/types.h" +#include "ardour/crossfade.h" +#include "ardour/crossfade_compare.h" +#include "ardour/audioregion.h" +#include "ardour/playlist.h" +#include "ardour/utils.h" +#include "ardour/session.h" +#include "ardour/source.h" #include "i18n.h" #include @@ -51,15 +51,11 @@ Sample* Crossfade::crossfade_buffer_in = 0; void Crossfade::set_buffer_size (nframes_t sz) { - if (crossfade_buffer_out) { - delete [] crossfade_buffer_out; - crossfade_buffer_out = 0; - } + delete [] crossfade_buffer_out; + crossfade_buffer_out = 0; - if (crossfade_buffer_in) { - delete [] crossfade_buffer_in; - crossfade_buffer_in = 0; - } + delete [] crossfade_buffer_in; + crossfade_buffer_in = 0; if (sz) { crossfade_buffer_out = new Sample[sz]; @@ -73,7 +69,7 @@ Crossfade::operator== (const Crossfade& other) return (_in == other._in) && (_out == other._out); } -Crossfade::Crossfade (boost::shared_ptr in, boost::shared_ptr out, +Crossfade::Crossfade (boost::shared_ptr in, boost::shared_ptr out, nframes_t length, nframes_t position, AnchorPoint ap) @@ -87,7 +83,7 @@ Crossfade::Crossfade (boost::shared_ptr in, boost::shared_ptr