27 |
|
|
28 |
#if HAVE_JACK |
#if HAVE_JACK |
29 |
|
|
30 |
|
#ifndef HAVE_JACK_CLIENT_NAME_SIZE |
31 |
|
#define jack_client_name_size() 33 |
32 |
|
#endif |
33 |
|
|
34 |
namespace LinuxSampler { |
namespace LinuxSampler { |
35 |
|
|
36 |
/// number of currently existing JACK audio output devices in LinuxSampler |
/// number of currently existing JACK audio output devices in LinuxSampler |
75 |
|
|
76 |
void AudioOutputDeviceJack::AudioChannelJack::ParameterJackBindings::OnSetValue(std::vector<String> vS) { |
void AudioOutputDeviceJack::AudioChannelJack::ParameterJackBindings::OnSetValue(std::vector<String> vS) { |
77 |
// TODO: we should remove all existing bindings before we connect new ones here |
// TODO: we should remove all existing bindings before we connect new ones here |
78 |
String src_name = "LinuxSampler:" + ((DeviceRuntimeParameterString*)pChannel->Parameters["NAME"])->ValueAsString(); |
String src_name = ((DeviceCreationParameterString*)pChannel->pDevice->Parameters["NAME"])->ValueAsString() + ":" + |
79 |
|
((DeviceRuntimeParameterString*)pChannel->Parameters["NAME"])->ValueAsString(); |
80 |
for (int i = 0; i < vS.size(); i++) { |
for (int i = 0; i < vS.size(); i++) { |
81 |
String dst_name = vS[i]; |
String dst_name = vS[i]; |
82 |
int res = jack_connect(pChannel->pDevice->hJackClient, src_name.c_str(), dst_name.c_str()); |
int res = jack_connect(pChannel->pDevice->hJackClient, src_name.c_str(), dst_name.c_str()); |
249 |
} |
} |
250 |
|
|
251 |
String AudioOutputDeviceJack::Version() { |
String AudioOutputDeviceJack::Version() { |
252 |
String s = "$Revision: 1.15 $"; |
String s = "$Revision: 1.17 $"; |
253 |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
254 |
} |
} |
255 |
|
|