31 |
|
|
32 |
|
|
33 |
/** |
/** |
34 |
* |
* This task mutes/unmutes a specific sampler channel. |
35 |
* @author Grigor Iliev |
* @author Grigor Iliev |
36 |
*/ |
*/ |
37 |
public class SetMuteChannel extends EnhancedTask { |
public class SetMuteChannel extends EnhancedTask { |
38 |
private int channel; |
private int channel; |
39 |
private boolean mute; |
private boolean mute; |
40 |
|
|
41 |
|
/** |
42 |
|
* Creates new instance of <code>SetMuteChannel</code>. |
43 |
|
* @param channel The sampler channel to be muted/unmuted. |
44 |
|
* @param mute If <code>true</code> the specified channel is muted, |
45 |
|
* else the channel is unmuted. |
46 |
|
*/ |
47 |
public |
public |
48 |
SetMuteChannel(int channel, boolean mute) { |
SetMuteChannel(int channel, boolean mute) { |
49 |
setTitle("SetMuteChannel_task"); |
setTitle("SetMuteChannel_task"); |
53 |
this.mute = mute; |
this.mute = mute; |
54 |
} |
} |
55 |
|
|
56 |
|
/** The entry point of the task. */ |
57 |
public void |
public void |
58 |
run() { |
run() { |
59 |
try { CC.getClient().setChannelMute(channel, mute); } |
try { CC.getClient().setChannelMute(channel, mute); } |