215 |
} |
} |
216 |
|
|
217 |
/** |
/** |
218 |
|
* This task alters a specific setting of an audio output device. |
219 |
|
*/ |
220 |
|
public static class SetDeviceParameter extends EnhancedTask { |
221 |
|
private int dev; |
222 |
|
private Parameter prm; |
223 |
|
|
224 |
|
/** |
225 |
|
* Creates new instance of <code>SetDeviceParameter</code>. |
226 |
|
* @param dev The id of the device whose parameter should be set. |
227 |
|
* @param prm The parameter to be set. |
228 |
|
*/ |
229 |
|
public |
230 |
|
SetDeviceParameter(int dev, Parameter prm) { |
231 |
|
setTitle("Audio.SetDeviceParameter_task"); |
232 |
|
setDescription(i18n.getMessage("Audio.SetDeviceParameter.desc", dev)); |
233 |
|
|
234 |
|
this.dev = dev; |
235 |
|
this.prm = prm; |
236 |
|
} |
237 |
|
|
238 |
|
/** The entry point of the task. */ |
239 |
|
public void |
240 |
|
run() { |
241 |
|
try { CC.getClient().setAudioOutputDeviceParameter(dev, prm); } |
242 |
|
catch(Exception x) { |
243 |
|
setErrorMessage(getDescription() + ": " + HF.getErrorMessage(x)); |
244 |
|
CC.getLogger().log(Level.FINE, getErrorMessage(), x); |
245 |
|
} |
246 |
|
} |
247 |
|
} |
248 |
|
|
249 |
|
/** |
250 |
* This task alters a specific setting of an audio output channel. |
* This task alters a specific setting of an audio output channel. |
251 |
*/ |
*/ |
252 |
public static class SetChannelParameter extends EnhancedTask { |
public static class SetChannelParameter extends EnhancedTask { |
256 |
|
|
257 |
/** |
/** |
258 |
* Creates new instance of <code>SetChannelParameter</code>. |
* Creates new instance of <code>SetChannelParameter</code>. |
259 |
* @param dev The id of the device whose port parameter should be set. |
* @param dev The id of the device whose channel parameter should be set. |
260 |
* @param channel The channel number. |
* @param channel The channel number. |
261 |
* @param prm The parameter to be set. |
* @param prm The parameter to be set. |
262 |
*/ |
*/ |