fix typo in 9702020
authorRobin Gareus <robin@gareus.org>
Fri, 19 Aug 2016 14:23:32 +0000 (16:23 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 19 Aug 2016 14:23:49 +0000 (16:23 +0200)
libs/ardour/audio_unit.cc

index dbcb697578d8ad043df42157130c30ea11e3da8f..5118f4ec3852ec7c4fac5ffe338c14ac42e35d5f 100644 (file)
@@ -1833,7 +1833,7 @@ AUPlugin::get_musical_time_location_callback (UInt32*   outDeltaSampleOffsetToNe
                        /* on the beat */
                        *outDeltaSampleOffsetToNextBeat = 0;
                } else {
-                       double const next_beat = cail (tmap.quarter_note_at_frame (transport_frame + input_offset));
+                       double const next_beat = ceil (tmap.quarter_note_at_frame (transport_frame + input_offset));
                        framepos_t const next_beat_frame = tmap.frame_at_quarter_note (next_beat);
 
                        *outDeltaSampleOffsetToNextBeat = next_beat_frame - (transport_frame + input_offset);