66 |
} |
} |
67 |
} |
} |
68 |
} |
} |
69 |
|
|
70 |
|
/** |
71 |
|
* This task retrieves detailed information about all parameters |
72 |
|
* of the specified audio output driver. |
73 |
|
*/ |
74 |
|
public static class GetDriverParametersInfo extends EnhancedTask<Parameter[]> { |
75 |
|
private String driver; |
76 |
|
Parameter[] depList; |
77 |
|
|
78 |
|
/** |
79 |
|
* Creates a new instance of <code>GetDriverParametersInfo</code>. |
80 |
|
* @param depList - A dependences list. |
81 |
|
*/ |
82 |
|
public |
83 |
|
GetDriverParametersInfo(String driver, Parameter... depList) { |
84 |
|
setTitle("Audio.GetDriverParametersInfo_task"); |
85 |
|
setDescription(i18n.getMessage("Audio.GetDriverParametersInfo.desc")); |
86 |
|
|
87 |
|
this.driver = driver; |
88 |
|
this.depList = depList; |
89 |
|
} |
90 |
|
|
91 |
|
/** The entry point of the task. */ |
92 |
|
public void |
93 |
|
run() { |
94 |
|
try { |
95 |
|
AudioOutputDriver d; |
96 |
|
d = CC.getClient().getAudioOutputDriverInfo(driver, depList); |
97 |
|
setResult(d.getParameters()); |
98 |
|
} |
99 |
|
catch(Exception x) { |
100 |
|
setErrorMessage(getDescription() + ": " + HF.getErrorMessage(x)); |
101 |
|
CC.getLogger().log(Level.FINE, getErrorMessage(), x); |
102 |
|
} |
103 |
|
} |
104 |
|
} |
105 |
|
|
106 |
/** |
/** |
107 |
* This task creates a new audio output device. |
* This task creates a new audio output device. |