summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-16 17:36:28 +0000
committerDavid Robillard <d@drobilla.net>2008-11-16 17:36:28 +0000
commit7ef7533bba52f687e4d311aca2e687264249d0c6 (patch)
tree5b9ed9670fe4273e83ee6040ea39e9142aaa8684
parent9c075799fdadf3d35cc4544ee0331e572d32cbe9 (diff)
downloadingen-7ef7533bba52f687e4d311aca2e687264249d0c6.tar.gz
ingen-7ef7533bba52f687e4d311aca2e687264249d0c6.tar.bz2
ingen-7ef7533bba52f687e4d311aca2e687264249d0c6.zip
Always report buffer size of control ports as 1 (fix ticket #260).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1728 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/engine/PortImpl.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/PortImpl.hpp b/src/engine/PortImpl.hpp
index 30d5a9b5..9837ebf2 100644
--- a/src/engine/PortImpl.hpp
+++ b/src/engine/PortImpl.hpp
@@ -99,7 +99,7 @@ public:
uint32_t index() const { return _index; }
uint32_t poly() const { return _poly; }
DataType type() const { return _type; }
- size_t buffer_size() const { return _buffer_size; }
+ size_t buffer_size() const { return (_type == DataType::CONTROL) ? 1 : _buffer_size; }
virtual void set_buffer_size(size_t size);