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

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

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

revision 1742 by iliev, Thu May 8 17:26:19 2008 UTC revision 1743 by iliev, Sat May 31 23:04:01 2008 UTC
# Line 654  public class DefaultSamplerModel impleme Line 654  public class DefaultSamplerModel impleme
654          }          }
655                    
656          /**          /**
657             * Gets the position of the specified channel.
658             * @param channel The model of the channel.
659             * @return The position of the specified channel in the channel list or -1
660             * if the channel is not in the list.
661             */
662            public int
663            getChannelIndex(SamplerChannelModel channel) {
664                    if(channel == null) return -1;
665                    for(int i = 0; i < channelModels.size(); i++) {
666                            if(channelModels.get(i).getChannelId() == channel.getChannelId()) return i;
667                    }
668                    
669                    return -1;
670            }
671            
672            /**
673           * Gets the current number of sampler channels.           * Gets the current number of sampler channels.
674           * @return The current number of sampler channels.           * @return The current number of sampler channels.
675           */           */

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

  ViewVC Help
Powered by ViewVC