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

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

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

revision 2199 by iliev, Fri Jun 24 21:34:51 2011 UTC revision 2200 by iliev, Sun Jul 3 22:01:16 2011 UTC
# Line 196  public class DefaultAudioDeviceModel imp Line 196  public class DefaultAudioDeviceModel imp
196          }          }
197                    
198          /**          /**
199             * Gets the index of the send effect chain with ID <code>chainId</code>.
200             * @param chainId The ID of the send effect chain.
201             * @return The zero-based position of the specified send effect chain
202             * in the send effect chain list or <code>-1</code>
203             * if there is no send effect chain with ID <code>chainId</code>.
204             */
205            public int getSendEffectChainIndex(int chainId) {
206                    for(int i = 0; i < getSendEffectChainCount(); i++) {
207                            if(getSendEffectChain(i).getChainId() == chainId) return i;
208                    }
209                    
210                    return -1;
211            }
212            
213            /**
214           * Adds the specified send effect chain to the specified audio output device.           * Adds the specified send effect chain to the specified audio output device.
215           */           */
216          @Override          @Override

Legend:
Removed from v.2199  
changed lines
  Added in v.2200

  ViewVC Help
Powered by ViewVC