1 |
/* |
/* |
2 |
* jlscp - a java LinuxSampler control protocol API |
* jlscp - a java LinuxSampler control protocol API |
3 |
* |
* |
4 |
* Copyright (C) 2005 Grigor Kirilov Iliev |
* Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of jlscp. |
* This file is part of jlscp. |
7 |
* |
* |
94 |
|
|
95 |
for(int j = 0; j < d.getChannelCount(); j++) { |
for(int j = 0; j < d.getChannelCount(); j++) { |
96 |
AudioOutputChannel aoc = |
AudioOutputChannel aoc = |
97 |
client.getAudioOutputChannelInfo(d.getDeviceID(), j); |
client.getAudioOutputChannelInfo(d.getDeviceId(), j); |
98 |
System.out.println(" Channel: " + aoc.getName()); |
System.out.println(" Channel: " + aoc.getName()); |
99 |
if(aoc.isMixChannel()) System.out.println ( |
if(aoc.isMixChannel()) System.out.println ( |
100 |
" Mix channel destincation: " + aoc.getMixChannelDest() |
" Mix channel destincation: " + aoc.getMixChannelDest() |
205 |
|
|
206 |
private static void |
private static void |
207 |
showDeviceInfo(Device device) { |
showDeviceInfo(Device device) { |
208 |
System.out.println("Device ID: " + device.getDeviceID()); |
System.out.println("Device ID: " + device.getDeviceId()); |
209 |
System.out.println(" Driver: " + device.getDriverName()); |
System.out.println(" Driver: " + device.getDriverName()); |
210 |
System.out.println(" Active: " + device.isActive()); |
System.out.println(" Active: " + device.isActive()); |
211 |
for(Parameter p : device.getAdditionalParameters()) showParameterInfo(p); |
for(Parameter p : device.getAdditionalParameters()) showParameterInfo(p); |
317 |
|
|
318 |
private static void |
private static void |
319 |
showChannelInfo(SamplerChannel channel) { |
showChannelInfo(SamplerChannel channel) { |
320 |
System.out.println("Sampler channel ID: " + channel.getChannelID()); |
System.out.println("Sampler channel ID: " + channel.getChannelId()); |
321 |
System.out.println(); |
System.out.println(); |
322 |
} |
} |
323 |
|
|