X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fjack_slave.cc;h=9ef6eb8579ed21897a0ad7822846cd2c12e8e02a;hb=6572f421a40b30112dbe11a4eace115a6af1c83e;hp=f65be1deead78051fff8ee0697643a7f76058805;hpb=87726495c30f90554b5204b5385d17274a8fe93e;p=ardour.git diff --git a/libs/ardour/jack_slave.cc b/libs/ardour/jack_slave.cc index f65be1deea..9ef6eb8579 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; + nframes64_t p; /* call this to initialize things */ speed_and_position (x, p); } @@ -62,8 +62,8 @@ 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, nframes64_t& position) { jack_position_t pos; jack_transport_state_t state; @@ -87,6 +87,8 @@ JACK_Slave::speed_and_position (float& sp, nframes_t& position) _starting = true; // don't adjust speed here, just leave it as it was break; + default: + cerr << "WARNING: Unknown JACK transport state: " << state << endl; } sp = speed;