aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/machina/Machine.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-02-09 18:23:57 +0000
committerDavid Robillard <d@drobilla.net>2008-02-09 18:23:57 +0000
commitbd92c37ed3513ab881cad3e8667c6e9c6af0858f (patch)
treefa0971280abc199228bdc84dbbfe6e3b04b8b876 /src/engine/machina/Machine.hpp
parent643bc5303bd0aaf054df02782a1ee2bf2c78e852 (diff)
downloadmachina-bd92c37ed3513ab881cad3e8667c6e9c6af0858f.tar.gz
machina-bd92c37ed3513ab881cad3e8667c6e9c6af0858f.tar.bz2
machina-bd92c37ed3513ab881cad3e8667c6e9c6af0858f.zip
Use Raul::TimeStamp (LV2 compatible typed 32:32 fixed timestamp) everywhere.
Fix initial size of Patchage messages window. Machina disabled for now (transitioning to generic timestamps). git-svn-id: http://svn.drobilla.net/lad/machina@1133 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/machina/Machine.hpp')
-rw-r--r--src/engine/machina/Machine.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/engine/machina/Machine.hpp b/src/engine/machina/Machine.hpp
index 5c4df36..dae8b75 100644
--- a/src/engine/machina/Machine.hpp
+++ b/src/engine/machina/Machine.hpp
@@ -36,7 +36,7 @@ namespace Machina {
*/
class Machine : public Raul::Stateful {
public:
- Machine();
+ Machine(TimeUnit unit);
Machine(const Machine& copy);
Machine& operator=(const Machine& other);
@@ -59,11 +59,11 @@ public:
void write_state(Redland::Model& model);
// Audio context
- void reset(Raul::BeatTime time);
- BeatCount run(const Raul::TimeSlice& time);
+ void reset(Raul::TimeStamp time);
+ TimeDuration run(const Raul::TimeSlice& time);
// Any context
- inline Raul::BeatTime time() const { return _time; }
+ inline Raul::TimeStamp time() const { return _time; }
SharedPtr<LearnRequest> pending_learn() { return _pending_learn; }
void clear_pending_learn() { _pending_learn.reset(); }
@@ -89,7 +89,7 @@ private:
bool _is_activated;
bool _is_finished;
- Raul::BeatTime _time;
+ Raul::TimeStamp _time;
SharedPtr<LearnRequest> _pending_learn;
WeakPtr<Raul::MIDISink> _sink;
Nodes _nodes;