/[svn]/jlscp/trunk/examples/Poll.java
ViewVC logotype

Diff of /jlscp/trunk/examples/Poll.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1138 by iliev, Mon Oct 10 14:55:44 2005 UTC revision 1139 by iliev, Mon Apr 2 20:43:58 2007 UTC
# Line 1  Line 1 
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   *   *
# Line 94  public class Poll { Line 94  public class Poll {
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()
# Line 205  public class Poll { Line 205  public class Poll {
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);
# Line 317  public class Poll { Line 317  public class Poll {
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                    

Legend:
Removed from v.1138  
changed lines
  Added in v.1139

  ViewVC Help
Powered by ViewVC