diff options
author | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-25 06:55:57 +0000 |
commit | df8ee18c0139f889bf7c697713a2205364845464 (patch) | |
tree | 2d3d2389504676b194fcb47a9ed3e7b1da8f94c4 /src/libs/engine/PortImpl.cpp | |
parent | f3f08e248a96f2a6d75d4fc6ee3dc34985805e58 (diff) | |
download | ingen-df8ee18c0139f889bf7c697713a2205364845464.tar.gz ingen-df8ee18c0139f889bf7c697713a2205364845464.tar.bz2 ingen-df8ee18c0139f889bf7c697713a2205364845464.zip |
Overhaul SLV2 API to return/take SLV2Value (instead of strings or primitives) wherever possible.
Make 'index' a fundemental property of ingen ports.
git-svn-id: http://svn.drobilla.net/lad/ingen@1113 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/PortImpl.cpp')
-rw-r--r-- | src/libs/engine/PortImpl.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/libs/engine/PortImpl.cpp b/src/libs/engine/PortImpl.cpp index 4fc61c20..9500aab1 100644 --- a/src/libs/engine/PortImpl.cpp +++ b/src/libs/engine/PortImpl.cpp @@ -37,15 +37,17 @@ PortImpl::PortImpl(NodeImpl* const node, uint32_t index, uint32_t poly, DataType type, + const Atom& value, size_t buffer_size) : GraphObjectImpl(node, name, (type == DataType::AUDIO || type == DataType::CONTROL)) , _index(index) , _poly(poly) , _buffer_size(buffer_size) , _type(type) + , _value(value) , _fixed_buffers(false) , _broadcast(false) - , _last_broadcasted_value(0.0f) // default? + , _last_broadcasted_value(_value) // default? , _buffers(new Raul::Array<Buffer*>(poly)) { assert(node != NULL); @@ -59,6 +61,8 @@ PortImpl::PortImpl(NodeImpl* const node, if (type == DataType::EVENT) _broadcast = true; // send activity blips + + set_variable("ingen:default", value); assert(_buffers->size() > 0); } @@ -122,14 +126,6 @@ PortImpl::apply_poly(Raul::Maid& maid, uint32_t poly) } -Raul::Atom -PortImpl::value() const -{ - // FIXME: will need this for ingen-side serialization - throw; -} - - void PortImpl::allocate_buffers() { |