summaryrefslogtreecommitdiff
path: root/libs/ardour/lua_api.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-03-23 21:47:13 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-03-23 21:47:13 -0600
commit0f63b829439e74c9ca8e3e1b8597651ddff361c6 (patch)
tree52ff6ab429c3cc0ea746a38864ee04dbd8fac9a0 /libs/ardour/lua_api.cc
parent3bbad66a999dbe402209881de072720d78f01793 (diff)
fix error in multiple calls to SourceFactory::createWritable()
removal of tape tracks removed an intermediate argument in the argument list; presence of default args for the last two arguments and implicit conversion from int->bool prevented the compiler from complaining about any existing calls. This supplements/extends a54b000a70
Diffstat (limited to 'libs/ardour/lua_api.cc')
-rw-r--r--libs/ardour/lua_api.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/ardour/lua_api.cc b/libs/ardour/lua_api.cc
index 1a398c6fa2..b446c56355 100644
--- a/libs/ardour/lua_api.cc
+++ b/libs/ardour/lua_api.cc
@@ -1055,10 +1055,9 @@ LuaAPI::Rubberband::process (luabridge::LuaRef cb)
return rv;
}
try {
- _asrc.push_back (boost::dynamic_pointer_cast<AudioSource> (
- SourceFactory::createWritable (
- DataType::AUDIO, session,
- path, false, sample_rate)));
+
+ _asrc.push_back (boost::dynamic_pointer_cast<AudioSource> (SourceFactory::createWritable (DataType::AUDIO, session, path, sample_rate)));
+
} catch (failed_constructor& err) {
cleanup (true);
return rv;