diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-03-18 03:42:32 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-03-18 03:42:32 +0000 |
commit | eb4a1fdbb8fec1f8aa5dfe33f882064e85792a84 (patch) | |
tree | b97aadaf2a8593e33ceaf1e4da78ab39d2608702 /libs/ardour/midi_stretch.cc | |
parent | d69f4e9e3dde0e400c80bca37f7bfcc555fbbf1b (diff) |
refactor JACK MIDI port to allow writing from a non-process() thread, and move ARDOUR::MidiEvent into MIDI namespace along with midi_events.h header
git-svn-id: svn://localhost/ardour2/branches/3.0@3155 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_stretch.cc')
-rw-r--r-- | libs/ardour/midi_stretch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/midi_stretch.cc b/libs/ardour/midi_stretch.cc index f214bde0be..f33c58a0fd 100644 --- a/libs/ardour/midi_stretch.cc +++ b/libs/ardour/midi_stretch.cc @@ -91,7 +91,7 @@ MidiStretch::run (boost::shared_ptr<Region> r) const double new_time = i->time() * _request.time_fraction; // FIXME: double copy - MidiEvent ev = MidiEvent(*i, true); + MIDI::Event ev = MIDI::Event(*i, true); ev.time() = new_time; new_model->append(ev); } @@ -101,7 +101,7 @@ MidiStretch::run (boost::shared_ptr<Region> r) const int ret = finish (region, nsrcs, new_name); - results[0]->set_length(r->length() * _request.time_fraction, NULL); + results[0]->set_length((nframes_t) floor (r->length() * _request.time_fraction), NULL); return ret; } |