explicit checks for all components of the LV2 stack
[ardour.git] / libs / ardour / audio_unit.cc
index 5932b7394943cbaa5c5dfd2b60e7c697f82d0e5d..6b6d7ae3176417530977cdd67760752a02979ca9 100644 (file)
@@ -1462,7 +1462,7 @@ AUPlugin::get_musical_time_location_callback (UInt32*   outDeltaSampleOffsetToNe
                } else {
                        *outDeltaSampleOffsetToNextBeat = (UInt32) 
                                floor (((Timecode::BBT_Time::ticks_per_beat - bbt.ticks)/Timecode::BBT_Time::ticks_per_beat) * // fraction of a beat to next beat
-                                      metric.meter().frames_per_division (metric.tempo(), _session.frame_rate())); // frames per beat
+                                      metric.tempo().frames_per_beat (_session.frame_rate())); // frames per beat
                }
        }