diff options
Diffstat (limited to 'raul/TimeStamp.hpp')
-rw-r--r-- | raul/TimeStamp.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/raul/TimeStamp.hpp b/raul/TimeStamp.hpp index 6cbf807..c108fd6 100644 --- a/raul/TimeStamp.hpp +++ b/raul/TimeStamp.hpp @@ -41,6 +41,7 @@ public: * PPQN for BEATS, and ignored for SECONDS. */ inline TimeUnit(Type type, uint32_t ppt) { + assert(type == SECONDS || ppt != 0); _type = type; _ppt = ppt; } @@ -106,7 +107,7 @@ public: } inline TimeStamp& operator=(const TimeStamp& rhs) { - assert(_unit == rhs._unit); + //assert(_unit == rhs._unit); _ticks = rhs._ticks; _subticks = rhs._subticks; //_unit = rhs._unit; |