Do special things when freewheeling only when this instance of ardour is exporting.

git-svn-id: svn://localhost/ardour2/branches/3.0@7415 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sampo Savolainen 2010-07-14 21:06:12 +00:00
parent 8d5abe20d6
commit fb25622944

View File

@ -495,7 +495,11 @@ AudioEngine::process_callback (nframes_t nframes)
(*i)->cycle_start (nframes);
}
if (_freewheeling) {
/* test if we are freewheeling and there are freewheel signals connected.
ardour should act normally even when freewheeling unless /it/ is exporting */
if (_freewheeling && !Freewheel.empty()) {
/* emit the Freewheel signal and stop freewheeling in the event of trouble
*/
boost::optional<int> r = Freewheel (nframes);