diff options
author | David Robillard <d@drobilla.net> | 2009-02-16 02:51:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-16 02:51:16 +0000 |
commit | 3963d2b0b224e79fdf8e852e39fc3a765fa1431b (patch) | |
tree | 0c6c8a9d519d46437ffe9cb96f09ca337f33faff /libs/ardour/audio_region_importer.cc | |
parent | beb3eea62bf217d0a7b2a86a96d5c375329df10a (diff) |
Move all beats <-> frames time conversion into a single object that can be passed around.
This has 3 main benefits:
- All conversion code is in one place (less duplication, potential bugs)
- The conversion method can be passed to things that are ignorant
of the actual time units involved, information required, etc.
(In the future it would be nice to have user selectable tempo/frame time)
- It should be relatively simple now to support tempo changes part-way
through a MIDI region (at least architecturally speaking)
git-svn-id: svn://localhost/ardour2/branches/3.0@4594 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_region_importer.cc')
-rw-r--r-- | libs/ardour/audio_region_importer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audio_region_importer.cc b/libs/ardour/audio_region_importer.cc index 714446bfe2..23f3bfd6c6 100644 --- a/libs/ardour/audio_region_importer.cc +++ b/libs/ardour/audio_region_importer.cc @@ -336,7 +336,7 @@ AudioRegionImporter::prepare_sources () return; } - Session::import_status status; + Session::ImportStatus status; // Get sources that still need to be imported for (std::list<string>::iterator it = filenames.begin(); it != filenames.end(); ++it) { |