X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fardour%2Fjack_slave.cc;h=116ccdd145566cdf8401c8a0df8a584e074d1692;hb=204baa31d842d4c2f833d319b6fa55e402a1bfb8;hp=40729d33704056600ccde5f3ca0c8c20329538f4;hpb=42db44c1939410aab15eb3c0d08f6026fb58b003;p=ardour.git diff --git a/libs/ardour/jack_slave.cc b/libs/ardour/jack_slave.cc index 40729d3370..116ccdd145 100644 --- a/libs/ardour/jack_slave.cc +++ b/libs/ardour/jack_slave.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2004 Paul Davis + Copyright (C) 2004 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,24 +18,24 @@ */ #include +#include -#include #include #include -#include -#include +#include "ardour/slave.h" +#include "ardour/session.h" #include "i18n.h" +using namespace std; using namespace ARDOUR; -using namespace sigc; JACK_Slave::JACK_Slave (jack_client_t* j) : jack (j) { - float x; - nframes_t p; + double x; + framepos_t p; /* call this to initialize things */ speed_and_position (x, p); } @@ -62,11 +62,12 @@ JACK_Slave::ok() const return true; } -bool -JACK_Slave::speed_and_position (float& sp, nframes_t& position) +bool +JACK_Slave::speed_and_position (double& sp, framepos_t& position) { jack_position_t pos; jack_transport_state_t state; + state = jack_transport_query (jack, &pos); switch (state) {