Browse Source

JackEngine::PortRegister - set buffer size argument to engine buffer size when buffer size is 0.

tags/1.9.8
Devin Anderson 15 years ago
parent
commit
264aead302
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      common/JackEngine.cpp

+ 3
- 0
common/JackEngine.cpp View File

@@ -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)


Loading…
Cancel
Save