X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fsurfaces%2Fcontrol_protocol%2Fcontrol_protocol%2Fbasic_ui.h;h=3bd5ea1c0a30b99ebfc5ca3f220df32fd299e559;hb=4b861e603972148a29638cade51cee27ebc997a2;hp=cae9c23ae95d1bed3d9f13533401fb4889cc976a;hpb=e5258d4ed18a358f9812acd971336272508f7038;p=ardour.git diff --git a/libs/surfaces/control_protocol/control_protocol/basic_ui.h b/libs/surfaces/control_protocol/control_protocol/basic_ui.h index cae9c23ae9..3bd5ea1c0a 100644 --- a/libs/surfaces/control_protocol/control_protocol/basic_ui.h +++ b/libs/surfaces/control_protocol/control_protocol/basic_ui.h @@ -22,12 +22,19 @@ #define __ardour_basic_ui_h__ #include +#include + +#include "pbd/signals.h" + +#include "ardour/types.h" #include -#include "control_protocol/timecode.h" + +#include "timecode/time.h" namespace ARDOUR { class Session; + class SessionEvent; } class BasicUI { @@ -43,7 +50,7 @@ class BasicUI { void loop_toggle (); void access_action ( std::string action_path ); - static sigc::signal AccessAction; + static PBD::Signal2 AccessAction; void goto_start (); void goto_end (); void rewind (); @@ -53,8 +60,8 @@ class BasicUI { void set_transport_speed (double speed); double get_transport_speed (); - jack_nframes_t transport_frame (); - void locate (jack_nframes_t frame, bool play = false); + ARDOUR::framepos_t transport_frame (); + void locate (ARDOUR::framepos_t frame, bool play = false); bool locating (); bool locked (); @@ -72,11 +79,11 @@ class BasicUI { void rec_enable_toggle (); void toggle_all_rec_enables (); - jack_nframes_t timecode_frames_per_hour (); + ARDOUR::framecnt_t timecode_frames_per_hour (); - void timecode_time (jack_nframes_t where, Timecode::Time&); - void timecode_to_sample (Timecode::Time& timecode, jack_nframes_t& sample, bool use_offset, bool use_subframes) const; - void sample_to_timecode (jack_nframes_t sample, Timecode::Time& timecode, bool use_offset, bool use_subframes) const; + void timecode_time (framepos_t where, Timecode::Time&); + void timecode_to_sample (Timecode::Time& timecode, framepos_t & sample, bool use_offset, bool use_subframes) const; + void sample_to_timecode (framepos_t sample, Timecode::Time& timecode, bool use_offset, bool use_subframes) const; protected: BasicUI ();