/[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 1356 by iliev, Fri Sep 7 12:09:59 2007 UTC revision 1357 by iliev, Sat Sep 22 17:27:06 2007 UTC
# Line 215  public class Audio { Line 215  public class Audio {
215          }          }
216    
217          /**          /**
218             * This task alters a specific setting of an audio output device.
219             */
220            public static class SetDeviceParameter extends EnhancedTask {
221                    private int dev;
222                    private Parameter prm;
223            
224                    /**
225                     * Creates new instance of <code>SetDeviceParameter</code>.
226                     * @param dev The id of the device whose parameter should be set.
227                     * @param prm The parameter to be set.
228                     */
229                    public
230                    SetDeviceParameter(int dev, Parameter prm) {
231                            setTitle("Audio.SetDeviceParameter_task");
232                            setDescription(i18n.getMessage("Audio.SetDeviceParameter.desc", dev));
233                    
234                            this.dev = dev;
235                            this.prm = prm;
236                    }
237            
238                    /** The entry point of the task. */
239                    public void
240                    run() {
241                            try { CC.getClient().setAudioOutputDeviceParameter(dev, prm); }
242                            catch(Exception x) {
243                                    setErrorMessage(getDescription() + ": " + HF.getErrorMessage(x));
244                                    CC.getLogger().log(Level.FINE, getErrorMessage(), x);
245                            }
246                    }
247            }
248    
249            /**
250           * This task alters a specific setting of an audio output channel.           * This task alters a specific setting of an audio output channel.
251           */           */
252          public static class SetChannelParameter extends EnhancedTask {          public static class SetChannelParameter extends EnhancedTask {
# Line 224  public class Audio { Line 256  public class Audio {
256                    
257                  /**                  /**
258                   * Creates new instance of <code>SetChannelParameter</code>.                   * Creates new instance of <code>SetChannelParameter</code>.
259                   * @param dev The id of the device whose port parameter should be set.                   * @param dev The id of the device whose channel parameter should be set.
260                   * @param channel The channel number.                   * @param channel The channel number.
261                   * @param prm The parameter to be set.                   * @param prm The parameter to be set.
262                   */                   */

Legend:
Removed from v.1356  
changed lines
  Added in v.1357

  ViewVC Help
Powered by ViewVC