mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
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
This commit is contained in:
parent
beb3eea62b
commit
3963d2b0b2
13 changed files with 206 additions and 80 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue