Consolidate delivery buffer flushing of all route types
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Thu, 14 Jul 2016 23:43:14 +0000 (01:43 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 15 Jul 2016 01:55:49 +0000 (21:55 -0400)
commit8af589b322408aba38413dc2c85dc77ae1c9f2e4
treea8b99e1462efe92f6a9c6b40ba9e9f59fb56436b
parentbfc6b6a3ab737da3073d69284b7438bfa65a72ec
Consolidate delivery buffer flushing of all route types

Route::no_roll(), Route::roll(), Track::no_roll(), AudioTrack::roll()
and MidiTrack::roll() all had the exact same loop for flushing buffers
of their Delivery processors. That was a lot of replicated code that had
to be kept synchronised by hand. Put that code into a protected method
Route::flush_processor_buffers_locked() which is called instead.
libs/ardour/ardour/route.h
libs/ardour/audio_track.cc
libs/ardour/midi_track.cc
libs/ardour/route.cc
libs/ardour/track.cc