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

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

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

revision 1285 by iliev, Fri Aug 10 19:55:03 2007 UTC revision 1327 by iliev, Fri Sep 7 12:09:59 2007 UTC
# Line 66  public class Audio { Line 66  public class Audio {
66                          }                          }
67                  }                  }
68          }          }
69            
70            /**
71             * This task retrieves detailed information about all parameters
72             * of the specified audio output driver.
73             */
74            public static class GetDriverParametersInfo extends EnhancedTask<Parameter[]> {
75                    private String driver;
76                    Parameter[] depList;
77                    
78                    /**
79                     * Creates a new instance of <code>GetDriverParametersInfo</code>.
80                     * @param depList - A dependences list.
81                     */
82                    public
83                    GetDriverParametersInfo(String driver, Parameter... depList) {
84                            setTitle("Audio.GetDriverParametersInfo_task");
85                            setDescription(i18n.getMessage("Audio.GetDriverParametersInfo.desc"));
86                            
87                            this.driver = driver;
88                            this.depList = depList;
89                    }
90            
91                    /** The entry point of the task. */
92                    public void
93                    run() {
94                            try {
95                                    AudioOutputDriver d;
96                                    d = CC.getClient().getAudioOutputDriverInfo(driver, depList);
97                                    setResult(d.getParameters());
98                            }
99                            catch(Exception x) {
100                                    setErrorMessage(getDescription() + ": " + HF.getErrorMessage(x));
101                                    CC.getLogger().log(Level.FINE, getErrorMessage(), x);
102                            }
103                    }
104            }
105    
106          /**          /**
107           * This task creates a new audio output device.           * This task creates a new audio output device.

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

  ViewVC Help
Powered by ViewVC