diff options
Diffstat (limited to 'src/engine/BufferFactory.cpp')
-rw-r--r-- | src/engine/BufferFactory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/BufferFactory.cpp b/src/engine/BufferFactory.cpp index 9eb51b54..7aac798a 100644 --- a/src/engine/BufferFactory.cpp +++ b/src/engine/BufferFactory.cpp @@ -31,6 +31,8 @@ using namespace Raul; namespace Ingen { namespace Engine { +static const size_t EVENT_BYTES_PER_FRAME = 4; // FIXME + BufferFactory::BufferFactory(Engine& engine, SharedPtr<Ingen::Shared::LV2URIMap> uris) : _engine(engine) @@ -78,7 +80,7 @@ BufferFactory::default_buffer_size(PortType type) case PortType::CONTROL: return sizeof(LV2_Atom) + sizeof(float); case PortType::EVENTS: - return _engine.driver()->block_length() * event_bytes_per_frame; + return _engine.driver()->block_length() * EVENT_BYTES_PER_FRAME; default: return 1024; // Who knows } |