#include <pthread.h>
#include <usb.h>
-#include <glibmm/thread.h>
+#include <glibmm/threads.h>
-#include <ardour/types.h>
+#include "ardour/types.h"
-#include <control_protocol/control_protocol.h>
+#include "control_protocol/control_protocol.h"
class TranzportControlProtocol : public ARDOUR::ControlProtocol
{
WheelIncrSecond,
WheelIncrMinute
};
-
+
enum DisplayMode {
DisplayNormal,
DisplayRecording,
ARDOUR::gain_t gain_fraction;
- Glib::Mutex update_lock;
+ Glib::Threads::Mutex update_lock;
bool screen_invalid[2][20];
char screen_current[2][20];
uint32_t last_mins;
uint32_t last_secs;
uint32_t last_frames;
- nframes_t last_where;
+ framepos_t last_where;
ARDOUR::gain_t last_track_gain;
uint32_t last_meter_fill;
- struct timeval last_wheel_motion;
+ uint64_t last_wheel_motion;
int last_wheel_dir;
Glib::Mutex io_lock;
void screen_invalidate();
int screen_flush();
void screen_clear();
- // bool screen_isuptodate(); // think on this -
+ // bool screen_isuptodate(); // think on this -
- // Commands to write to the lcd
+ // Commands to write to the lcd
int lcd_init();
bool lcd_damage();
void show_current_track ();
void show_track_gain ();
void show_transport_time ();
- void show_bbt (nframes_t where);
- void show_smpte (nframes_t where);
+ void show_bbt (framepos_t where);
+ void show_smpte (framepos_t where);
void show_wheel_mode ();
void show_gain ();
void show_pan ();