From 7ef7533bba52f687e4d311aca2e687264249d0c6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 16 Nov 2008 17:36:28 +0000 Subject: 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 --- src/engine/PortImpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine') 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); -- cgit v1.2.1