Wrap MusicalTime in a class.
[ardour.git] / libs / ardour / midi_diskstream.cc
index 69eca996aaeda92cf56c47643f34f4d966d82265..40d333d584a701542881de734288e723f65fe858 100644 (file)
@@ -927,7 +927,7 @@ MidiDiskstream::transport_stopped_wallclock (struct tm& /*when*/, time_t /*twhen
                        /* set length in beats to entire capture length */
 
                        BeatsFramesConverter converter (_session.tempo_map(), capture_info.front()->start);
-                       const double total_capture_beats = converter.from (total_capture);
+                       const Evoral::MusicalTime total_capture_beats = converter.from (total_capture);
                        _write_source->set_length_beats (total_capture_beats);
 
                        /* flush to disk: this step differs from the audio path,