More s/frame/sample/ -- Lua Scripts
[ardour.git] / scripts / s_selection.lua
index 1963ac1ec58be3761cf34ad08d2b4dec724688d9..5dd58a43c7ff1f83e6eaf731ea91efa1e38c4469 100644 (file)
@@ -11,8 +11,8 @@ function factory () return function ()
        --
        
        -- Range selection, total span of all ranges (0, 0 if no time range is selected)
-       if sel.time:start () < sel.time:end_frame () then
-               print ("Total Range:", sel.time:start (), sel.time:end_frame ())
+       if sel.time:start () < sel.time:end_sample () then
+               print ("Total Range:", sel.time:start (), sel.time:end_sample ())
        end
 
        -- Range selection, individual ranges.