31 |
|
|
32 |
|
|
33 |
/** |
/** |
34 |
* |
* This task sets the audio output device of a specific sampler channel. |
35 |
* @author Grigor Iliev |
* @author Grigor Iliev |
36 |
*/ |
*/ |
37 |
public class SetChannelAudioOutputDevice extends EnhancedTask { |
public class SetChannelAudioOutputDevice extends EnhancedTask { |
38 |
private int channel; |
private int channel; |
39 |
private int deviceID; |
private int deviceID; |
40 |
|
|
41 |
|
/** |
42 |
|
* Creates new instance of <code>SetChannelAudioOutputDevice</code>. |
43 |
|
* @param channel The sampler channel number. |
44 |
|
* @param deviceID The numerical ID of the audio output device. |
45 |
|
*/ |
46 |
public |
public |
47 |
SetChannelAudioOutputDevice(int channel, int deviceID) { |
SetChannelAudioOutputDevice(int channel, int deviceID) { |
48 |
setTitle("SetChannelAudioOutputDevice_task"); |
setTitle("SetChannelAudioOutputDevice_task"); |
54 |
this.deviceID = deviceID; |
this.deviceID = deviceID; |
55 |
} |
} |
56 |
|
|
57 |
|
/** The entry point of the task. */ |
58 |
public void |
public void |
59 |
run() { |
run() { |
60 |
try { CC.getClient().setChannelAudioOutputDevice(channel, deviceID); } |
try { CC.getClient().setChannelAudioOutputDevice(channel, deviceID); } |