clickless meter-point changes

This commit is contained in:
Robin Gareus
2015-04-26 06:00:08 +02:00
parent c0437aed47
commit 6ac8588cd8
3 changed files with 159 additions and 49 deletions

View File

@@ -75,6 +75,17 @@ Session::process (pframes_t nframes)
(this->*process_function) (nframes);
/* realtime-safe meter-position changes
*
* ideally this would be done in
* Route::process_output_buffers() but various functions
* callig it hold a _processor_lock reader-lock
*/
boost::shared_ptr<RouteList> r = routes.reader ();
for (RouteList::iterator i = r->begin(); i != r->end(); ++i) {
(*i)->apply_meter_change_rt();
}
_engine.main_thread()->drop_buffers ();
/* deliver MIDI clock. Note that we need to use the transport frame