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

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

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

revision 1341 by iliev, Mon Sep 10 22:29:09 2007 UTC revision 1818 by iliev, Wed Dec 24 17:29:47 2008 UTC
# Line 113  public interface SamplerModel { Line 113  public interface SamplerModel {
113           */           */
114          public AudioOutputDriver[] getAudioOutputDrivers();          public AudioOutputDriver[] getAudioOutputDrivers();
115                    
116            
117            
118            /**
119             * Gets the model of the audio device at the specified position.
120             * @param index The position of the audio device to return.
121             * @return The model of the audio device at the specified position.
122             * @see #getAudioDeviceCount
123             */
124            public AudioDeviceModel getAudioDevice(int index);
125            
126          /**          /**
127           * Gets the model of the audio device with ID <code>deviceId</code>.           * Gets the model of the audio device with ID <code>deviceId</code>.
128           * @param deviceId The ID of the audio device whose model should be obtained.           * @param deviceId The ID of the audio device whose model should be obtained.
# Line 162  public interface SamplerModel { Line 172  public interface SamplerModel {
172          public MidiInputDriver[] getMidiInputDrivers();          public MidiInputDriver[] getMidiInputDrivers();
173                    
174          /**          /**
175             * Gets the model of the MIDI device at the specified position.
176             * @param index The position of the MIDI device to return.
177             * @return The model of the MIDI device at the specified position.
178             */
179            public MidiDeviceModel getMidiDevice(int index);
180            
181            /**
182           * Gets the model of the MIDI device with ID <code>deviceId</code>.           * Gets the model of the MIDI device with ID <code>deviceId</code>.
183           * @param deviceId The ID of the MIDI device whose model should be obtained.           * @param deviceId The ID of the MIDI device whose model should be obtained.
184           * @return The model of the specified MIDI device or <code>null</code>           * @return The model of the specified MIDI device or <code>null</code>
# Line 323  public interface SamplerModel { Line 340  public interface SamplerModel {
340          public SamplerChannelModel[] getChannels();          public SamplerChannelModel[] getChannels();
341                    
342          /**          /**
343             * Gets the model of the sampler channel in the specified position.
344             * @param index The position of the channel to return.
345             * @return The model of the specified sampler channel.
346             * @see #getchannelCount
347             */
348            public SamplerChannelModel getChannel(int index);
349            
350            /**
351           * Gets the model of the sampler channel with ID <code>channelId</code>.           * Gets the model of the sampler channel with ID <code>channelId</code>.
352           * @param channelId The ID of the sampler channel whose model should be obtained.           * @param channelId The ID of the sampler channel whose model should be obtained.
353           * @return The model of the specified sampler channel or <code>null</code>           * @return The model of the specified sampler channel or <code>null</code>
# Line 331  public interface SamplerModel { Line 356  public interface SamplerModel {
356          public SamplerChannelModel getChannelById(int channelId);          public SamplerChannelModel getChannelById(int channelId);
357                    
358          /**          /**
359             * Gets the position of the specified channel.
360             * @param channel The model of the channel.
361             * @return The position of the specified channel in the channel list or -1
362             * if the channel is not in the list.
363             */
364            public int getChannelIndex(SamplerChannelModel channel);
365            
366            /**
367           * Gets the current number of sampler channels.           * Gets the current number of sampler channels.
368           * @return The current number of sampler channels.           * @return The current number of sampler channels.
369           */           */
# Line 361  public interface SamplerModel { Line 394  public interface SamplerModel {
394          public boolean removeChannelById(int channelId);          public boolean removeChannelById(int channelId);
395                    
396          /**          /**
397             * Removes all sampler channels.
398             * Note that this method doesn't remove the channel in the backend.
399             */
400            public void removeAllChannels();
401            
402            /**
403           * Schedules a new task for removing the specified sampler channel on the backend side.           * Schedules a new task for removing the specified sampler channel on the backend side.
404           * @param channelId The ID of the channel to be removed.           * @param channelId The ID of the channel to be removed.
405           */           */
# Line 374  public interface SamplerModel { Line 413  public interface SamplerModel {
413          public void updateChannel(SamplerChannel channel);          public void updateChannel(SamplerChannel channel);
414                    
415          /**          /**
416             * Determines whether there are known upcoming changes to the
417             * channel list, which should be considered as part of a single action.
418             */
419            public boolean getChannelListIsAdjusting();
420            
421            /**
422             * Sets whether the upcoming changes to the
423             * channel list should be considered part of a single action.
424             */
425            public void setChannelListIsAdjusting(boolean b);
426            
427            /**
428           * Schedules a new task for starting an instrument editor for editing           * Schedules a new task for starting an instrument editor for editing
429           * the loaded instrument on the specified sampler channel.           * the loaded instrument on the specified sampler channel.
430           * @param channelId The sampler channel number.           * @param channelId The sampler channel number.
# Line 408  public interface SamplerModel { Line 459  public interface SamplerModel {
459          public int getMutedBySoloChannelCount();          public int getMutedBySoloChannelCount();
460                    
461          /**          /**
462             * Gets the total number of active streams.
463             * @return The total number of active streams.
464             */
465            public int getTotalStreamCount();
466            
467            /**
468           * Gets the total number of active voices.           * Gets the total number of active voices.
469           * @return The total number of active voices.           * @return The total number of active voices.
470           */           */
# Line 443  public interface SamplerModel { Line 500  public interface SamplerModel {
500          public void resetBackend();          public void resetBackend();
501                    
502          /**          /**
503             * Updates the current number of active disk streams in the sampler.
504             * @param count The new number of active streams.
505             */
506            public void updateActiveStreamsInfo(int count);
507            
508            /**
509           * Updates the current and the maximum number of active voices in the sampler.           * Updates the current and the maximum number of active voices in the sampler.
510           * @param count The new number of active voices.           * @param count The new number of active voices.
511           * @param countMax The maximum number of active voices.           * @param countMax The maximum number of active voices.
512           */           */
513          public void updateActiveVoiceInfo(int count, int countMax);          public void updateActiveVoiceInfo(int count, int countMax);
514            
515            /**
516             * Determines whether the sampler configuration is modified.
517             */
518            public boolean isModified();
519            
520            /**
521             * Sets whether the sampler configuration is modified.
522             */
523            public void setModified(boolean b);
524            
525            /** Resets the model. */
526            public void reset();
527  }  }

Legend:
Removed from v.1341  
changed lines
  Added in v.1818

  ViewVC Help
Powered by ViewVC