Remove debug printout.
[ardour.git] / scripts / _session_test.lua
index 6a4a372f8d981b551420e0675103a88b046b1101..cc7032ac0283b64d2a0a34bb092578d45b319fd6 100644 (file)
@@ -21,13 +21,13 @@ function factory (params)
                local p = params["print"] or "no"
                local timeout = params["time"] or 90
                a = a or 0
-               if p ~= "no" then print (a, n_samples, Session:frame_rate (), Session:transport_rolling ()) end -- debug output (not rt safe)
+               if p ~= "no" then print (a, n_samples, Session:sample_rate (), Session:transport_rolling ()) end -- debug output (not rt safe)
                if (not Session:transport_rolling()) then
                        a = 0
                        return
                end
                a = a + n_samples
-               if (a > timeout * Session:frame_rate()) then
+               if (a > timeout * Session:sample_rate()) then
                        Session:request_transport_speed(0.0, true)
                end
        end