Browse Source

libjack: copy output to all setup audio ports for single out clients

tags/1.9.8
falkTX 7 years ago
parent
commit
2608fc8482
2 changed files with 16 additions and 1 deletions
  1. +10
    -0
      source/libjack/libjack.cpp
  2. +6
    -1
      source/libjack/libjack_latency.cpp

+ 10
- 0
source/libjack/libjack.cpp View File

@@ -719,6 +719,16 @@ bool CarlaJackAppClient::handleRtData()
FloatVectorOperations::add(fdataRealOuts, fdataCopyOuts,
fServer.bufferSize*fServer.numAudioOuts);
}

if (jclient->audioOuts.count() == 1 && fServer.numAudioOuts > 1)
{
for (uint8_t i=1; i<fServer.numAudioOuts; ++i)
{
FloatVectorOperations::copy(fdataRealOuts+(fServer.bufferSize*i),
fdataCopyOuts,
fServer.bufferSize);
}
}
}
}
}


+ 6
- 1
source/libjack/libjack_latency.cpp View File

@@ -44,7 +44,12 @@ void jack_port_get_latency_range(jack_port_t*, jack_latency_callback_mode_t, jac

// --------------------------------------------------------------------------------------------------------------------

//int jack_recompute_total_latencies (jack_client_t *client) JACK_OPTIONAL_WEAK_EXPORT;
CARLA_EXPORT
int jack_recompute_total_latencies(jack_client_t* client)
{
carla_stderr2("%s(%p)", __FUNCTION__, client);
return 0;
}

CARLA_EXPORT
jack_nframes_t jack_port_get_latency(jack_port_t* port)


Loading…
Cancel
Save