diff options
author | David Robillard <d@drobilla.net> | 2014-11-16 01:05:21 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-16 22:35:45 -0500 |
commit | fd9ccc7058cf7cfadbfa1dfb9676e2de3a14e1b0 (patch) | |
tree | b65c03818c9eded429651ca621773d728f9e1976 /libs/ardour/ardour/types.h | |
parent | 9c5e63bcc69290e1df84ea345b1899a241b7655e (diff) |
Use an enum for RoundMode instead of magic numbers.
No functional changes in this one (for easier auditing), but towards having
round up/down only if necessary modes, rather than kludging around that
situation with a double round as we do currently.
Diffstat (limited to 'libs/ardour/ardour/types.h')
-rw-r--r-- | libs/ardour/ardour/types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/ardour/types.h b/libs/ardour/ardour/types.h index 165afd0dd9..1b0ba5ea3c 100644 --- a/libs/ardour/ardour/types.h +++ b/libs/ardour/ardour/types.h @@ -216,6 +216,12 @@ namespace ARDOUR { TrackColor }; + enum RoundMode { + RoundDownAlways = -1, ///< Always round down, even if on a division + RoundNearest = 0, ///< Round to nearest + RoundUpAlways = 1 ///< Always round up, even if on a division + }; + class AnyTime { public: enum Type { |