From 264aead30254a755a58cff99b513fd2636f451e8 Mon Sep 17 00:00:00 2001 From: Devin Anderson Date: Mon, 2 May 2011 17:28:14 -0700 Subject: [PATCH] JackEngine::PortRegister - set buffer size argument to engine buffer size when buffer size is 0. --- common/JackEngine.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/JackEngine.cpp b/common/JackEngine.cpp index 998cb651..6a511f3f 100644 --- a/common/JackEngine.cpp +++ b/common/JackEngine.cpp @@ -804,6 +804,9 @@ int JackEngine::PortRegister(int refnum, const char* name, const char *type, uns return -1; } + if (! buffer_size) { + buffer_size = fEngineControl->fBufferSize; + } *port_index = fGraphManager->AllocatePort(refnum, name, type, (JackPortFlags)flags, buffer_size); if (*port_index != NO_PORT) { if (client->GetClientControl()->fActive)