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 commit 6fbcf83779
and parts of 2d11667ce3.
This commit is contained in:
Robin Gareus 2020-04-23 17:06:40 +02:00
parent 24ed3c5a9e
commit e15b5c6e6b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 ();