diff options
author | David Robillard <d@drobilla.net> | 2013-02-23 19:55:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-23 19:55:13 +0000 |
commit | 6b6cb56b2ceab509569bfca247f108f2be5e25c0 (patch) | |
tree | 5a46eee0c3f518fa7bb20e6a8784e5bd3ba04598 /src/server/PortImpl.hpp | |
parent | 5a6aafff8dda9dddce479a2ad86edb933c9688c3 (diff) | |
download | ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.tar.gz ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.tar.bz2 ingen-6b6cb56b2ceab509569bfca247f108f2be5e25c0.zip |
Move Atom implementation out of Raul so it can depend on LV2.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5076 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PortImpl.hpp')
-rw-r--r-- | src/server/PortImpl.hpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp index f4c80aaf..c980a134 100644 --- a/src/server/PortImpl.hpp +++ b/src/server/PortImpl.hpp @@ -19,8 +19,8 @@ #include <cstdlib> +#include "ingen/Atom.hpp" #include "raul/Array.hpp" -#include "raul/Atom.hpp" #include "BufferRef.hpp" #include "NodeImpl.hpp" @@ -72,18 +72,18 @@ public: virtual bool apply_poly( ProcessContext& context, Raul::Maid& maid, uint32_t poly); - const Raul::Atom& value() const { return _value; } - void set_value(const Raul::Atom& v) { _value = v; } + const Atom& value() const { return _value; } + void set_value(const Atom& v) { _value = v; } - const Raul::Atom& minimum() const { return _min; } - const Raul::Atom& maximum() const { return _max; } + const Atom& minimum() const { return _min; } + const Atom& maximum() const { return _max; } /* The following two methods store the range in variables so it can be accessed in the process thread, which is required for applying control bindings from incoming MIDI data. */ - void set_minimum(const Raul::Atom& min) { _min = min; } - void set_maximum(const Raul::Atom& max) { _max = max; } + void set_minimum(const Atom& min) { _min = min; } + void set_maximum(const Atom& max) { _max = max; } inline BufferRef buffer(uint32_t voice) const { return _buffers->at((_poly == 1) ? 0 : voice); @@ -189,7 +189,7 @@ protected: uint32_t poly, PortType type, LV2_URID buffer_type, - const Raul::Atom& value, + const Atom& value, size_t buffer_size); struct SetState { @@ -211,9 +211,9 @@ protected: float _peak; PortType _type; LV2_URID _buffer_type; - Raul::Atom _value; - Raul::Atom _min; - Raul::Atom _max; + Atom _value; + Atom _min; + Atom _max; Raul::Array<SetState>* _set_states; Raul::Array<SetState>* _prepared_set_states; Raul::Array<BufferRef>* _buffers; |