|
|
@@ -1266,12 +1266,13 @@ int JackCoreAudioDriver::Attach() |
|
|
|
// Monitor ports |
|
|
|
if (fWithMonitorPorts) { |
|
|
|
jack_log("Create monitor port "); |
|
|
|
snprintf(name, sizeof(name) - 1, "%s:%s:monitor_%u", fAliasName, fPlaybackDriverName, i + 1); |
|
|
|
snprintf(name, sizeof(name) - 1, "%s:monitor_%u", fClientControl.fName, i + 1); |
|
|
|
if ((port_index = fGraphManager->AllocatePort(fClientControl.fRefNum, name, JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, fEngineControl->fBufferSize)) == NO_PORT) { |
|
|
|
jack_error("Cannot register monitor port for %s", name); |
|
|
|
return -1; |
|
|
|
} else { |
|
|
|
port = fGraphManager->GetPort(port_index); |
|
|
|
port->SetAlias(alias); |
|
|
|
port->SetLatency(fEngineControl->fBufferSize); |
|
|
|
fMonitorPortList[i] = port_index; |
|
|
|
} |
|
|
|