mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
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
This commit is contained in:
parent
3bbad66a99
commit
0f63b82943
8 changed files with 16 additions and 36 deletions
|
|
@ -119,9 +119,7 @@ ensure_per_region_source (Session* session, boost::shared_ptr<MidiRegion> region
|
|||
<< " for region " << region->name() << endl;
|
||||
|
||||
} else {
|
||||
newsrc = boost::dynamic_pointer_cast<MidiSource>(
|
||||
SourceFactory::createWritable(DataType::MIDI, *session,
|
||||
newsrc_path, false, session->sample_rate()));
|
||||
newsrc = boost::dynamic_pointer_cast<MidiSource>(SourceFactory::createWritable(DataType::MIDI, *session, newsrc_path, session->sample_rate()));
|
||||
|
||||
if (!newsrc) {
|
||||
cout << UTILNAME << ":" << endl
|
||||
|
|
@ -175,8 +173,7 @@ ensure_per_source_source (Session* session, boost::shared_ptr<MidiRegion> region
|
|||
} else {
|
||||
|
||||
newsrc = boost::dynamic_pointer_cast<MidiSource>(
|
||||
SourceFactory::createWritable(DataType::MIDI, *session,
|
||||
newsrc_path, false, session->sample_rate()));
|
||||
SourceFactory::createWritable(DataType::MIDI, *session, newsrc_path, session->sample_rate()));
|
||||
if (!newsrc) {
|
||||
cout << UTILNAME << ":" << endl
|
||||
<<" An error occurred creating writeable source " << newsrc_path << " exiting." << endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue