Browse Source

ffado-portaliases patch, fix ticket #156

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3904 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/v1.9.5
sletz 14 years ago
parent
commit
d7dd7caa9a
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      linux/firewire/JackFFADODriver.cpp

+ 6
- 0
linux/firewire/JackFFADODriver.cpp View File

@@ -447,6 +447,9 @@ int JackFFADODriver::Attach()

port = fGraphManager->GetPort(port_index);
port->SetLatency(driver->period_size + driver->capture_frame_latency);
// capture port aliases (jackd1 style port names)
snprintf(buf, sizeof(buf) - 1, "%s:capture_%i", fClientControl.fName, (int) chn + 1);
port->SetAlias(buf);
fCapturePortList[chn] = port_index;
jack_log("JackFFADODriver::Attach fCapturePortList[i] %ld ", port_index);
fCaptureChannels++;
@@ -520,6 +523,9 @@ int JackFFADODriver::Attach()
port = fGraphManager->GetPort(port_index);
// Add one buffer more latency if "async" mode is used...
port->SetLatency((driver->period_size * (driver->device_options.nb_buffers - 1)) + ((fEngineControl->fSyncMode) ? 0 : fEngineControl->fBufferSize) + driver->playback_frame_latency);
// playback port aliases (jackd1 style port names)
snprintf(buf, sizeof(buf) - 1, "%s:playback_%i", fClientControl.fName, (int) chn + 1);
port->SetAlias(buf);
fPlaybackPortList[chn] = port_index;
jack_log("JackFFADODriver::Attach fPlaybackPortList[i] %ld ", port_index);
fPlaybackChannels++;


Loading…
Cancel
Save