summaryrefslogtreecommitdiffstats
path: root/raul/TimeStamp.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-17 05:23:13 +0000
committerDavid Robillard <d@drobilla.net>2008-11-17 05:23:13 +0000
commitd287e5e3d23a5dfd9fda0da83ea6ec512e386655 (patch)
tree1614ca51891550d60c1e1ccf3b7532b55d36c6b0 /raul/TimeStamp.hpp
parent4f43c8357f109ab8f7b0886a41ae11ac4d07a830 (diff)
downloadraul-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.hpp3
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;