818 |
lscpCLient.setChannelMidiInputChannel(chnId, chn.getMidiInputChannel()); |
lscpCLient.setChannelMidiInputChannel(chnId, chn.getMidiInputChannel()); |
819 |
} |
} |
820 |
|
|
821 |
|
if(chn.getEngine() != null) { |
822 |
|
lscpCLient.loadSamplerEngine(chn.getEngine().getName(), chnId); |
823 |
|
lscpCLient.setChannelVolume(chnId, chn.getVolume()); |
824 |
|
} |
825 |
|
|
826 |
id = chn.getAudioOutputDevice(); |
id = chn.getAudioOutputDevice(); |
827 |
if(id != -1) { |
if(id != -1) { |
828 |
for(int i = 0; i < sm.getAudioDeviceCount(); i++) { |
for(int i = 0; i < sm.getAudioDeviceCount(); i++) { |
842 |
} |
} |
843 |
} |
} |
844 |
|
|
|
if(chn.getEngine() != null) { |
|
|
lscpCLient.loadSamplerEngine(chn.getEngine().getName(), chnId); |
|
|
lscpCLient.setChannelVolume(chnId, chn.getVolume()); |
|
|
} |
|
|
|
|
845 |
String s = chn.getInstrumentFile(); |
String s = chn.getInstrumentFile(); |
846 |
int i = chn.getInstrumentIndex(); |
int i = chn.getInstrumentIndex(); |
847 |
if(s != null) lscpCLient.loadInstrument(s, i, chnId, true); |
if(s != null) lscpCLient.loadInstrument(s, i, chnId, true); |