diff options
author | Todd Naugle <toddn@harrisonconsoles.com> | 2020-02-24 13:15:53 -0600 |
---|---|---|
committer | Todd Naugle <toddn@harrisonconsoles.com> | 2020-02-24 13:16:32 -0600 |
commit | 22e5374389dd9505bf7b902bbcf52eedecc1e969 (patch) | |
tree | 94f78c30ea840d0a6e5ef1e870ac1eb34d7fbb87 /gtk2_ardour/editor_audio_import.cc | |
parent | 06d4dc0ede78b68b7ee103adeca125af7bd67c38 (diff) |
Always set the natural position timestamp when importing audio files.
If the file has a timestamp, it should be set in the region during import.
This keeps the BWF timestamp from being lost and allows the region context
menu item "Move to original Position" to work.
It does not affect where the region will be positioned during import. That
still follows the import dialog menu selection (playhead, session start,
etc). It just maintains data that the user can decided to use if needed.
This change also allows files to be imported to the source list and then
later placed on the timeline in the correct timestamped position.
Diffstat (limited to 'gtk2_ardour/editor_audio_import.cc')
-rw-r--r-- | gtk2_ardour/editor_audio_import.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc index 24e7f49775..47d4d76d21 100644 --- a/gtk2_ardour/editor_audio_import.cc +++ b/gtk2_ardour/editor_audio_import.cc @@ -795,7 +795,7 @@ Editor::add_sources (vector<string> paths, boost::shared_ptr<Region> r = RegionFactory::create (sources, plist); - if (use_timestamp && boost::dynamic_pointer_cast<AudioRegion>(r)) { + if (boost::dynamic_pointer_cast<AudioRegion>(r)) { boost::dynamic_pointer_cast<AudioRegion>(r)->special_set_position(sources[0]->natural_position()); } @@ -884,7 +884,7 @@ Editor::add_sources (vector<string> paths, boost::shared_ptr<Region> r = RegionFactory::create (just_one, plist); - if (use_timestamp && boost::dynamic_pointer_cast<AudioRegion>(r)) { + if (boost::dynamic_pointer_cast<AudioRegion>(r)) { boost::dynamic_pointer_cast<AudioRegion>(r)->special_set_position((*x)->natural_position()); } |