paul at linuxaudiosystems.com
Fri Dec 31 19:30:08 PST 2004
> Crossfade::length () const
>- return _left->last_frame() - _right->first_frame();
>+ return _left->first_frame() + _left->length() - _right->first_frame();
applied with other checks. thanks.
>And a question:
>If Crossfade::Crossfade() throws failed_constructor(), then the memory used by
> it's instance isn't freed, no?
>To regain memory the exception transmitted should communicate the instance's t
>his pointer and the catch handler would call delete on it?
my understanding is that C++ requires that a constructor exited by
throw() automatically causes operator delete() to be called on the
object at the end of the catch() block.
More information about the Ardour-Dev