Small cleanup: add constructor to InterThreadInfo.

git-svn-id: svn://localhost/ardour2/branches/3.0@7044 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-05-02 19:08:30 +00:00
parent 0cb4160ce7
commit ceb1025c2c
5 changed files with 2 additions and 23 deletions

View file

@ -146,10 +146,6 @@ Editor::bounce_region_selection ()
InterThreadInfo itt;
itt.done = false;
itt.cancel = false;
itt.progress = 0.0f;
boost::shared_ptr<Region> r = track->bounce_range (region->position(), region->position() + region->length(), itt);
cerr << "Result of bounce of "
<< region->name() << " len = " << region->length()

View file

@ -3613,10 +3613,6 @@ Editor::freeze_route ()
InterthreadProgressWindow ipw (current_interthread_info, _("Freeze"), _("Cancel Freeze"));
itt.done = false;
itt.cancel = false;
itt.progress = 0.0f;
pthread_create_and_store (X_("freezer"), &itt.thread, _freeze_thread, this);
track_canvas->get_window()->set_cursor (Gdk::Cursor (Gdk::WATCH));
@ -3660,10 +3656,6 @@ Editor::bounce_range_selection (bool replace, bool enable_processing)
InterThreadInfo itt;
itt.done = false;
itt.cancel = false;
itt.progress = false;
playlist->clear_history ();
boost::shared_ptr<Region> r = rtv->track()->bounce_range (start, start+cnt, itt, enable_processing);

View file

@ -267,8 +267,6 @@ StripSilenceDialog::update_threshold_line ()
double const y = alt_log_meter (_threshold.get_value());
cout << "thresh " << _threshold.get_value() << " alt log " << alt_log_meter (_threshold.get_value()) << "\n";
(*i)->threshold_line->property_y1() = (n + 1 - y) * _wave_height;
(*i)->threshold_line->property_y2() = (n + 1 - y) * _wave_height;
}

View file

@ -320,6 +320,8 @@ namespace ARDOUR {
};
struct InterThreadInfo {
InterThreadInfo () : done (false), cancel (false), progress (0), thread (0) {}
volatile bool done;
volatile bool cancel;
volatile float progress;

View file

@ -56,15 +56,6 @@ StripSilence::run (boost::shared_ptr<Region> r)
return -1;
}
/* we don't care about this but we need to fill out the fields
anyway. XXX should really be a default constructor for ITT
*/
itt.done = false;
itt.cancel = false;
itt.progress = 0.0;
itt.thread = 0;
/* find periods of silence in the region */
std::list<std::pair<frameoffset_t, framecnt_t> > const silence =
region->find_silence (dB_to_coefficient (_threshold), _minimum_length, itt);