1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005 Grigor Kirilov Iliev |
* Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
39 |
|
|
40 |
import org.jsampler.CC; |
import org.jsampler.CC; |
41 |
|
|
42 |
|
import org.jsampler.event.SamplerAdapter; |
43 |
import org.jsampler.event.SamplerChannelListEvent; |
import org.jsampler.event.SamplerChannelListEvent; |
44 |
import org.jsampler.event.SamplerChannelListListener; |
import org.jsampler.event.SamplerChannelListListener; |
45 |
import org.jsampler.event.SamplerEvent; |
import org.jsampler.event.SamplerEvent; |
|
import org.jsampler.event.SamplerListener; |
|
46 |
|
|
47 |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
48 |
|
|
125 |
private Handler |
private Handler |
126 |
getHandler() { return handler; } |
getHandler() { return handler; } |
127 |
|
|
128 |
private class Handler implements SamplerListener, SamplerChannelListListener { |
private class Handler extends SamplerAdapter implements SamplerChannelListListener { |
129 |
/** Invoked when the total number of active voices is changed. */ |
/** Invoked when the total number of active voices is changed. */ |
130 |
public void |
public void |
131 |
totalVoiceCountChanged(SamplerEvent e) { |
totalVoiceCountChanged(SamplerEvent e) { |