diff options
Diffstat (limited to 'src/engine/AudioBuffer.cpp')
-rw-r--r-- | src/engine/AudioBuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/AudioBuffer.cpp b/src/engine/AudioBuffer.cpp index b564a3ba..693fa503 100644 --- a/src/engine/AudioBuffer.cpp +++ b/src/engine/AudioBuffer.cpp @@ -36,8 +36,8 @@ namespace Ingen { using namespace Shared; -AudioBuffer::AudioBuffer(Shared::PortType type, size_t size) - : ObjectBuffer(size + sizeof(LV2_Object) +AudioBuffer::AudioBuffer(BufferFactory& factory, Shared::PortType type, size_t size) + : ObjectBuffer(factory, size + sizeof(LV2_Object) + (type == PortType::AUDIO ? sizeof(LV2_Vector_Body) : 0)) , _state(OK) , _set_value(0) |