13
0

Add import_markers option (1/4)

This commit is contained in:
Robin Gareus 2022-11-22 01:44:53 +01:00
parent 3567a7f610
commit 4f4b931ccc
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
4 changed files with 7 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public:
std::vector<std::string> paths; std::vector<std::string> paths;
bool replace_existing_source; bool replace_existing_source;
bool split_midi_channels; bool split_midi_channels;
bool import_markers;
MidiTrackNameSource midi_track_name_source; MidiTrackNameSource midi_track_name_source;
/** set to true when all files have been imported, as distinct from the done in ARDOUR::InterThreadInfo, /** set to true when all files have been imported, as distinct from the done in ARDOUR::InterThreadInfo,

View File

@ -339,8 +339,12 @@ AudioRegionImporter::prepare_sources ()
status.done = false; status.done = false;
status.cancel = false; status.cancel = false;
status.freeze = false; status.freeze = false;
status.import_markers = false;
status.progress = 0.0; status.progress = 0.0;
status.quality = SrcBest; // TODO other qualities also status.quality = SrcBest; // TODO other qualities also
status.replace_existing_source = false;
status.split_midi_channels = false;
status.import_markers = false;
// Get sources that still need to be imported // Get sources that still need to be imported
for (std::list<string>::iterator it = filenames.begin(); it != filenames.end(); ++it) { for (std::list<string>::iterator it = filenames.begin(); it != filenames.end(); ++it) {

View File

@ -86,6 +86,7 @@ Session::import_sndfile_as_region (string path, SrcQuality quality, timepos_t& p
status.quality = quality; status.quality = quality;
status.replace_existing_source = false; status.replace_existing_source = false;
status.split_midi_channels = false; status.split_midi_channels = false;
status.import_markers = false;
status.done = false; status.done = false;
status.cancel = false; status.cancel = false;

View File

@ -3617,6 +3617,7 @@ TriggerBox::set_from_path (uint32_t slot, std::string const & path)
status.paths.push_back (path); status.paths.push_back (path);
status.replace_existing_source = false; status.replace_existing_source = false;
status.split_midi_channels = false; status.split_midi_channels = false;
status.import_markers = false;
status.midi_track_name_source = ARDOUR::SMFTrackNumber; status.midi_track_name_source = ARDOUR::SMFTrackNumber;
_session.import_files (status); _session.import_files (status);