13
0

Allow to cancel LuaAPI::Vamp::analyze

This commit is contained in:
Robin Gareus 2019-09-02 05:18:17 +02:00
parent 9e11542828
commit 6edb649b53
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -830,7 +830,9 @@ LuaAPI::Vamp::analyze (boost::shared_ptr<ARDOUR::Readable> r, uint32_t channel,
features = _plugin->process (bufs, ::Vamp::RealTime::fromSeconds ((double) pos / _sample_rate));
if (cb.type () == LUA_TFUNCTION) {
cb (&features, pos);
if (cb (&features, pos)) {
break;
}
}
pos += std::min (_stepsize, to_read);