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 /gtk2_ardour/editor.h | |
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 'gtk2_ardour/editor.h')
-rw-r--r-- | gtk2_ardour/editor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 379716ed36..f0e28677f7 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -1305,7 +1305,7 @@ class Editor : public PublicEditor /* import specific info */ - struct EditorImportStatus : public ARDOUR::Session::import_status { + struct EditorImportStatus : public ARDOUR::Session::ImportStatus { Editing::ImportMode mode; nframes64_t pos; int target_tracks; |