totally untested initial code for MidiPlaylistSource, to provide for compound MIDI...
[ardour.git] / libs / ardour / midi_stretch.cc
index dedae6acb1c2e16fa81358c3f04824bcbd4b9199..af78e293dd4a2c25c8a619bba281308f45bd09ae 100644 (file)
@@ -1,6 +1,6 @@
 /*
     Copyright (C) 2008 Paul Davis
-    Author:  Dave Robillard
+    Author: David Robillard
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -42,7 +42,7 @@ MidiStretch::~MidiStretch ()
 }
 
 int
-MidiStretch::run (boost::shared_ptr<Region> r)
+MidiStretch::run (boost::shared_ptr<Region> r, Progress* progress)
 {
        SourceList nsrcs;
        char suffix[32];
@@ -110,7 +110,7 @@ MidiStretch::run (boost::shared_ptr<Region> r)
 
        const int ret = finish (region, nsrcs, new_name);
 
-       results[0]->set_length((nframes_t) floor (r->length() * _request.time_fraction), NULL);
+       results[0]->set_length((framecnt_t) floor (r->length() * _request.time_fraction), NULL);
 
        return ret;
 }