/[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 1285 by iliev, Fri Aug 10 19:55:03 2007 UTC revision 1743 by iliev, Sat May 31 23:04:01 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 374  public interface SamplerModel { Line 407  public interface SamplerModel {
407          public void updateChannel(SamplerChannel channel);          public void updateChannel(SamplerChannel channel);
408                    
409          /**          /**
410             * Determines whether there are known upcoming changes to the
411             * channel list, which should be considered as part of a single action.
412             */
413            public boolean getChannelListIsAdjusting();
414            
415            /**
416             * Sets whether the upcoming changes to the
417             * channel list should be considered part of a single action.
418             */
419            public void setChannelListIsAdjusting(boolean b);
420            
421            /**
422             * Schedules a new task for starting an instrument editor for editing
423             * the loaded instrument on the specified sampler channel.
424             * @param channelId The sampler channel number.
425             */
426            public void editBackendInstrument(int channelId);
427            
428            /**
429           * Determines whether there is at least one solo channel in the current list           * Determines whether there is at least one solo channel in the current list
430           * of sampler channels.           * of sampler channels.
431           * @return <code>true</code> if there is at least one solo channel in the current list of           * @return <code>true</code> if there is at least one solo channel in the current list of
# Line 401  public interface SamplerModel { Line 453  public interface SamplerModel {
453          public int getMutedBySoloChannelCount();          public int getMutedBySoloChannelCount();
454                    
455          /**          /**
456             * Gets the total number of active streams.
457             * @return The total number of active streams.
458             */
459            public int getTotalStreamCount();
460            
461            /**
462           * Gets the total number of active voices.           * Gets the total number of active voices.
463           * @return The total number of active voices.           * @return The total number of active voices.
464           */           */
# Line 436  public interface SamplerModel { Line 494  public interface SamplerModel {
494          public void resetBackend();          public void resetBackend();
495                    
496          /**          /**
497             * Updates the current number of active disk streams in the sampler.
498             * @param count The new number of active streams.
499             */
500            public void updateActiveStreamsInfo(int count);
501            
502            /**
503           * 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.
504           * @param count The new number of active voices.           * @param count The new number of active voices.
505           * @param countMax The maximum number of active voices.           * @param countMax The maximum number of active voices.
506           */           */
507          public void updateActiveVoiceInfo(int count, int countMax);          public void updateActiveVoiceInfo(int count, int countMax);
508            
509            /**
510             * Determines whether the sampler configuration is modified.
511             */
512            public boolean isModified();
513            
514            /**
515             * Sets whether the sampler configuration is modified.
516             */
517            public void setModified(boolean b);
518            
519            /** Resets the model. */
520            public void reset();
521  }  }

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

  ViewVC Help
Powered by ViewVC