summaryrefslogtreecommitdiff
path: root/libs/ardour/session.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/session.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/session.cc')
-rw-r--r--libs/ardour/session.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index 860ff846aa..9e4829666f 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -4907,8 +4907,7 @@ Session::create_audio_source_for_session (size_t n_chans, string const & base, u
const string path = new_audio_source_path (base, n_chans, chan, true);
if (!path.empty()) {
- return boost::dynamic_pointer_cast<AudioFileSource> (
- SourceFactory::createWritable (DataType::AUDIO, *this, path, sample_rate(), true, true));
+ return boost::dynamic_pointer_cast<AudioFileSource> (SourceFactory::createWritable (DataType::AUDIO, *this, path, sample_rate(), true, true));
} else {
throw failed_constructor ();
}
@@ -4921,9 +4920,7 @@ Session::create_midi_source_for_session (string const & basic_name)
const string path = new_midi_source_path (basic_name);
if (!path.empty()) {
- return boost::dynamic_pointer_cast<SMFSource> (
- SourceFactory::createWritable (
- DataType::MIDI, *this, path, false, sample_rate()));
+ return boost::dynamic_pointer_cast<SMFSource> (SourceFactory::createWritable (DataType::MIDI, *this, path, sample_rate()));
} else {
throw failed_constructor ();
}
@@ -4966,9 +4963,7 @@ Session::create_midi_source_by_stealing_name (boost::shared_ptr<Track> track)
const string path = Glib::build_filename (source_search_path (DataType::MIDI).front(), name);
- return boost::dynamic_pointer_cast<SMFSource> (
- SourceFactory::createWritable (
- DataType::MIDI, *this, path, false, sample_rate()));
+ return boost::dynamic_pointer_cast<SMFSource> (SourceFactory::createWritable (DataType::MIDI, *this, path, sample_rate()));
}
bool
@@ -5726,7 +5721,7 @@ Session::write_one_track (Track& track, samplepos_t start, samplepos_t end,
}
try {
- source = SourceFactory::createWritable (data_type, *this, path, false, sample_rate());
+ source = SourceFactory::createWritable (data_type, *this, path, sample_rate());
}
catch (failed_constructor& err) {