mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 21:25:46 +01:00
Clean up Audition realtime_overwrite
Auditioner seek calls are explicitly handled by the butler, and DR:overwrite_existing_buffers() is called explicitly to read MIDI data for audition. Session::non_realtime_overwrite is no longer required. This reverts commit6fbcf83779and parts of2d11667ce3.
This commit is contained in:
parent
24ed3c5a9e
commit
e15b5c6e6b
1 changed files with 2 additions and 7 deletions
|
|
@ -1222,13 +1222,8 @@ Session::butler_transport_work ()
|
|||
void
|
||||
Session::non_realtime_overwrite (int on_entry, bool& finished)
|
||||
{
|
||||
RouteList rl (*(routes.reader ()));
|
||||
|
||||
if (is_auditioning ()) {
|
||||
rl.push_back (auditioner);
|
||||
}
|
||||
|
||||
for (RouteList::iterator i = rl.begin(); i != rl.end(); ++i) {
|
||||
boost::shared_ptr<RouteList> rl = routes.reader();
|
||||
for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) {
|
||||
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
|
||||
if (tr && tr->pending_overwrite ()) {
|
||||
tr->overwrite_existing_buffers ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue