X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Feditor_tempodisplay.cc;h=2e4842016a6673ecb08942f21f5123bb26f8a73d;hb=b502bbc61895d61c39bf240b47e8a3664be2c541;hp=ac6c572af45434022233132bef9b48f74d3a0b11;hpb=ede4ecbb00ecc866c502454c81e711baea780ccd;p=ardour.git diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index ac6c572af4..2e4842016a 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -17,6 +17,10 @@ */ +#ifdef WAF_BUILD +#include "gtk2ardour-config.h" +#endif + #include // for sprintf, grrr #include #include @@ -134,13 +138,13 @@ Editor::redisplay_tempo (bool immediate_redraw) } void -Editor::compute_current_bbt_points (nframes_t leftmost, nframes_t rightmost) +Editor::compute_current_bbt_points (framepos_t leftmost, framepos_t rightmost) { if (!_session) { return; } - BBT_Time previous_beat, next_beat; // the beats previous to the leftmost frame and after the rightmost frame + Timecode::BBT_Time previous_beat, next_beat; // the beats previous to the leftmost frame and after the rightmost frame _session->bbt_time(leftmost, previous_beat); _session->bbt_time(rightmost, next_beat); @@ -220,7 +224,7 @@ Editor::mouse_add_new_tempo_event (framepos_t frame) } double bpm = 0; - BBT_Time requested; + Timecode::BBT_Time requested; bpm = tempo_dialog.get_bpm (); double nt = tempo_dialog.get_note_type(); @@ -267,7 +271,7 @@ Editor::mouse_add_new_meter_event (framepos_t frame) bpb = max (1.0, bpb); // XXX is this a reasonable limit? double note_type = meter_dialog.get_note_type (); - BBT_Time requested; + Timecode::BBT_Time requested; meter_dialog.get_bbt_time (requested); @@ -348,7 +352,7 @@ Editor::edit_tempo_section (TempoSection* section) double bpm = tempo_dialog.get_bpm (); double nt = tempo_dialog.get_note_type (); - BBT_Time when; + Timecode::BBT_Time when; tempo_dialog.get_bbt_time(when); bpm = max (0.01, bpm);