/[svn]/jlscp/trunk/src/org/linuxsampler/lscp/AudioOutputDevice.java
ViewVC logotype

Diff of /jlscp/trunk/src/org/linuxsampler/lscp/AudioOutputDevice.java

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

revision 783 by iliev, Wed Jun 1 07:11:31 2005 UTC revision 784 by iliev, Mon Oct 10 14:55:44 2005 UTC
# Line 30  public class AudioOutputDevice extends A Line 30  public class AudioOutputDevice extends A
30          private Parameter<Integer> channels = null;          private Parameter<Integer> channels = null;
31          private Parameter<Integer> samplerate = null;          private Parameter<Integer> samplerate = null;
32                    
33            private AudioOutputChannel[] audioChannels = new AudioOutputChannel[0];
34            
35                    
36          /** Creates a new instance of AudioOutputDevice */          /** Creates a new instance of AudioOutputDevice */
37          public          public
# Line 78  public class AudioOutputDevice extends A Line 80  public class AudioOutputDevice extends A
80           */           */
81          public void          public void
82          setSampleRateParameter(Parameter<Integer> samplerate) { this.samplerate = samplerate; }          setSampleRateParameter(Parameter<Integer> samplerate) { this.samplerate = samplerate; }
83            
84            /**
85             * Gets the current non-<code>null</code>
86             * list of audio channels this device offers.
87             * @return An <code>AudioOutputChannel</code> array
88             * providing all audio channels this device offers.
89             */
90            public AudioOutputChannel[]
91            getAudioChannels() { return audioChannels; }
92            
93            /**
94             * Sets the current list of audio output channels.
95             * @param channels The new list of audio output channels.
96             * @throws IllegalArgumentException If <code>channels</code> is <code>null</code>.
97             */
98            public void
99            setAudioChannels(AudioOutputChannel[] channels) {
100                    if(channels == null)
101                            throw new IllegalArgumentException("channels must be non null");
102                    audioChannels = channels;
103            }
104            
105            /**
106             * Gets the audio output channel at the specified index.
107             * @param index The index of the audio output channel to be retrieved.
108             */
109            public AudioOutputChannel
110            getAudioChannel(int index) { return audioChannels[index]; }
111            
112            /**
113             * Gets the current number of audio output channels this device offers.
114             * @return The current number of audio output channels this device offers.
115             */
116            public int
117            getAudioChannelCount() { return audioChannels.length; }
118  }  }

Legend:
Removed from v.783  
changed lines
  Added in v.784

  ViewVC Help
Powered by ViewVC