/[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 2194 by iliev, Fri Jun 24 21:34:51 2011 UTC revision 2195 by iliev, Tue Jun 28 22:44:39 2011 UTC
# Line 676  public class DefaultSamplerModel impleme Line 676  public class DefaultSamplerModel impleme
676          /** Gets the list of internal effects */          /** Gets the list of internal effects */
677          public EffectList          public EffectList
678          getEffects() { return effects; }          getEffects() { return effects; }
679                    
680            @Override
681            public EffectInstance
682            getEffectInstanceById(int instanceId) {
683                    for(int i = 0; i < getAudioDeviceCount(); i++) {
684                            AudioDeviceModel m = getAudioDevice(i);
685                            for(int j = 0; j < m.getSendEffectChainCount(); j++) {
686                                    EffectInstance ei =
687                                            m.getSendEffectChain(j).getEffectInstanceById(instanceId);
688                                    
689                                    if(ei != null) return ei;
690                            }
691                    }
692                    
693                    return null;
694            }
695            
696            @Override
697            public void
698            updateEffectInstance(EffectInstanceInfo instance) {
699                    EffectInstance ei = getEffectInstanceById(instance.getInstanceId());
700                    if(ei == null) {
701                            CC.getLogger().info("Unknow effect instance: " + instance.getInstanceId());
702                            return;
703                    }
704                    
705                    ei.setInfo(instance);
706            }
707                    
708          /**          /**
709           * Gets the model of the sampler channel in the specified position.           * Gets the model of the sampler channel in the specified position.

Legend:
Removed from v.2194  
changed lines
  Added in v.2195

  ViewVC Help
Powered by ViewVC