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