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.16 $"; |
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 |
|
|