change name of a Session method to makes its intended function clear
[ardour.git] / libs / ardour / ardour / diskstream.h
index a298e3f2c8d5380e2493627ac89ded464adcd6a3..e51f8c3ef15ec7c42d6232d92dcca0ce89a05392 100644 (file)
@@ -29,7 +29,7 @@
 
 #include <boost/utility.hpp>
 
-#include "evoral/types.hpp"
+#include "evoral/Range.hpp"
 
 #include "ardour/ardour.h"
 #include "ardour/chan_count.h"
@@ -103,8 +103,8 @@ class LIBARDOUR_API Diskstream : public SessionObject, public PublicDiskstream
        framecnt_t roll_delay() const { return _roll_delay; }
        void       set_roll_delay (framecnt_t);
 
-       bool         record_enabled() const { return g_atomic_int_get (&_record_enabled); }
-       bool         record_safe () const { return g_atomic_int_get (&_record_safe); }
+       bool         record_enabled() const { return g_atomic_int_get (const_cast<gint*>(&_record_enabled)); }
+       bool         record_safe () const { return g_atomic_int_get (const_cast<gint*>(&_record_safe)); }
        virtual void set_record_enabled (bool yn) = 0;
        virtual void set_record_safe (bool yn) = 0;