/[svn]/jsampler/trunk/src/org/jsampler/task/Midi.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/task/Midi.java

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

revision 1326 by iliev, Thu May 24 21:43:45 2007 UTC revision 1327 by iliev, Fri Sep 7 12:09:59 2007 UTC
# Line 75  public class Midi { Line 75  public class Midi {
75                          }                          }
76                  }                  }
77          }          }
78            
79            /**
80             * This task retrieves detailed information about all parameters
81             * of the specified MIDI input driver.
82             */
83            public static class GetDriverParametersInfo extends EnhancedTask<Parameter[]> {
84                    private String driver;
85                    Parameter[] depList;
86                    
87                    /**
88                     * Creates a new instance of <code>GetDriverParametersInfo</code>.
89                     * @param depList - A dependences list.
90                     */
91                    public
92                    GetDriverParametersInfo(String driver, Parameter... depList) {
93                            setTitle("Midi.GetDriverParametersInfo_task");
94                            setDescription(i18n.getMessage("Midi.GetDriverParametersInfo.desc"));
95                            
96                            this.driver = driver;
97                            this.depList = depList;
98                    }
99            
100                    /** The entry point of the task. */
101                    public void
102                    run() {
103                            try {
104                                    MidiInputDriver d;
105                                    d = CC.getClient().getMidiInputDriverInfo(driver, depList);
106                                    setResult(d.getParameters());
107                            }
108                            catch(Exception x) {
109                                    setErrorMessage(getDescription() + ": " + HF.getErrorMessage(x));
110                                    CC.getLogger().log(Level.FINE, getErrorMessage(), x);
111                            }
112                    }
113            }
114    
115          /**          /**
116           * This task creates a new MIDI input device.           * This task creates a new MIDI input device.

Legend:
Removed from v.1326  
changed lines
  Added in v.1327

  ViewVC Help
Powered by ViewVC