prepare region/range loudness analysis
[ardour.git] / libs / ardour / ardour / types.h
index 97dba38d7146e8be9c2809ce82362423cffbbb7f..8c47666873167a4ca0a189f428e414501988c2e6 100644 (file)
@@ -318,7 +318,7 @@ namespace ARDOUR {
 
                AudioRange (framepos_t s, framepos_t e, uint32_t i) : start (s), end (e) , id (i) {}
 
-               framecnt_t length() { return end - start + 1; }
+               framecnt_t length() const { return end - start + 1; }
 
                bool operator== (const AudioRange& other) const {
                        return start == other.start && end == other.end && id == other.id;