Editor::time_fx (RegionList& regions, float val, bool pitching)
{
delete current_timefx;
Editor::time_fx (RegionList& regions, float val, bool pitching)
{
delete current_timefx;
- current_timefx = new TimeFXDialog (*this, pitching);
- current_timefx->regions = regions;
/* See if we have any audio regions on our list */
RegionList::iterator i = regions.begin ();
/* See if we have any audio regions on our list */
RegionList::iterator i = regions.begin ();
+ current_timefx = new TimeFXDialog (*this, pitching);
+ current_timefx->regions = regions;
+
switch (current_timefx->run ()) {
case RESPONSE_ACCEPT:
break;
switch (current_timefx->run ()) {
case RESPONSE_ACCEPT:
break;