MSVC complains because we're using 'fabs()' to compare 2 x integers
authorJohn Emmas <johne53@tiscali.co.uk>
Sat, 22 Sep 2018 07:39:34 +0000 (08:39 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Sat, 22 Sep 2018 07:39:34 +0000 (08:39 +0100)
libs/ardour/session_process.cc

index 04f2d3f77e7edb978731cfa07d0e9ae6004aad06..720104c4191733c2ca9ab9ef87f0cbde92b4219c 100644 (file)
@@ -1084,7 +1084,7 @@ Session::follow_transport_master (pframes_t nframes)
 
        if (transport_master_tracking_state == Running) {
 
-               if (!actively_recording() && fabs (delta) > tmm.current()->resolution()) {
+               if (!actively_recording() && delta > tmm.current()->resolution()) {
                        DEBUG_TRACE (DEBUG::Slave, string_compose ("average slave delta %1 greater than slave resolution %2\n", delta, tmm.current()->resolution()));
                        if (micro_locate (-delta) != 0) {
                                DEBUG_TRACE (DEBUG::Slave, "micro-locate didn't work, set no disk output true\n");