31 |
|
|
32 |
|
|
33 |
/** |
/** |
34 |
* |
* This task sets an audio output channel of a specific sampler channel. |
35 |
* @author Grigor Iliev |
* @author Grigor Iliev |
36 |
*/ |
*/ |
37 |
public class SetChannelAudioOutputChannel extends EnhancedTask { |
public class SetChannelAudioOutputChannel extends EnhancedTask { |
39 |
private int audioOut; |
private int audioOut; |
40 |
private int audioIn; |
private int audioIn; |
41 |
|
|
42 |
|
/** |
43 |
|
* Creates new instance of <code>SetChannelAudioOutputChannel</code>. |
44 |
|
* @param channel The sampler channel number. |
45 |
|
* @param audioOut The sampler channel's audio output channel which should be rerouted. |
46 |
|
* @param audioIn The audio channel of the selected audio output device where |
47 |
|
* <code>audioOut</code> should be routed to. |
48 |
|
*/ |
49 |
public |
public |
50 |
SetChannelAudioOutputChannel(int channel, int audioOut, int audioIn) { |
SetChannelAudioOutputChannel(int channel, int audioOut, int audioIn) { |
51 |
setTitle("SetChannelAudioOutputChannel_task"); |
setTitle("SetChannelAudioOutputChannel_task"); |
57 |
this.audioIn = audioIn; |
this.audioIn = audioIn; |
58 |
} |
} |
59 |
|
|
60 |
|
/** The entry point of the task. */ |
61 |
public void |
public void |
62 |
run() { |
run() { |
63 |
try { CC.getClient().setChannelAudioOutputChannel(channel, audioOut, audioIn); } |
try { CC.getClient().setChannelAudioOutputChannel(channel, audioOut, audioIn); } |