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

Diff of /jsampler/trunk/src/org/jsampler/AudioDeviceModel.java

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

revision 1142 by iliev, Mon Aug 7 18:25:58 2006 UTC revision 1143 by iliev, Mon Apr 2 21:18:31 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005 Grigor Kirilov Iliev   *   Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 25  package org.jsampler; Line 25  package org.jsampler;
25  import org.jsampler.event.AudioDeviceListener;  import org.jsampler.event.AudioDeviceListener;
26    
27  import org.linuxsampler.lscp.AudioOutputDevice;  import org.linuxsampler.lscp.AudioOutputDevice;
28    import org.linuxsampler.lscp.Parameter;
29    
30    
31  /**  /**
# Line 51  public interface AudioDeviceModel { Line 52  public interface AudioDeviceModel {
52           * @return The numerical ID of this audio device or           * @return The numerical ID of this audio device or
53           * -1 if the device number is not set.           * -1 if the device number is not set.
54           */           */
55          public int getDeviceID();          public int getDeviceId();
56                    
57          /**          /**
58           * Gets the current settings of the audio device represented by this model.           * Gets the current settings of the audio device represented by this model.
# Line 78  public interface AudioDeviceModel { Line 79  public interface AudioDeviceModel {
79           * @return <code>true</code> if the device is enabled and <code>false</code> otherwise.           * @return <code>true</code> if the device is enabled and <code>false</code> otherwise.
80           */           */
81          public boolean isActive();          public boolean isActive();
82            
83            /**
84             * Schedules a new task for enabling/disabling the audio device.
85             * @param active If <code>true</code> the audio device is enabled,
86             * else the device is disabled.
87             */
88            public void setBackendActive(boolean active);
89            
90            /**
91             * Schedules a new task for changing the channel number of the audio device.
92             * @param channels The new number of audio channels.
93             */
94            public void setBackendChannelCount(int channels);
95            
96            /**
97             * Schedules a new task for altering a specific
98             * setting of the specified audio output channel.
99             * @param channel The channel number.
100             * @param prm The parameter to be set.
101             */
102            public void setBackendChannelParameter(int channel, Parameter prm);
103  }  }

Legend:
Removed from v.1142  
changed lines
  Added in v.1143

  ViewVC Help
Powered by ViewVC