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. |