diff options
author | David Robillard <d@drobilla.net> | 2008-11-17 05:23:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-11-17 05:23:13 +0000 |
commit | d287e5e3d23a5dfd9fda0da83ea6ec512e386655 (patch) | |
tree | 1614ca51891550d60c1e1ccf3b7532b55d36c6b0 /raul/TimeStamp.hpp | |
parent | 4f43c8357f109ab8f7b0886a41ae11ac4d07a830 (diff) | |
download | raul-d287e5e3d23a5dfd9fda0da83ea6ec512e386655.tar.gz raul-d287e5e3d23a5dfd9fda0da83ea6ec512e386655.tar.bz2 raul-d287e5e3d23a5dfd9fda0da83ea6ec512e386655.zip |
Run... almost
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1756 a436a847-0d15-0410-975c-d299462d15a1
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; |