61 |
|
|
62 |
import org.jsampler.task.Audio; |
import org.jsampler.task.Audio; |
63 |
import org.jsampler.view.ParameterTable; |
import org.jsampler.view.ParameterTable; |
64 |
|
import org.jsampler.view.fantasia.basic.PixmapPane; |
65 |
|
|
66 |
import org.linuxsampler.lscp.AudioOutputChannel; |
import org.linuxsampler.lscp.AudioOutputChannel; |
67 |
import org.linuxsampler.lscp.AudioOutputDevice; |
import org.linuxsampler.lscp.AudioOutputDevice; |
68 |
import org.linuxsampler.lscp.Parameter; |
import org.linuxsampler.lscp.Parameter; |
|
import org.linuxsampler.lscp.ParameterFactory; |
|
69 |
|
|
70 |
import static org.jsampler.view.fantasia.FantasiaI18n.i18n; |
import static org.jsampler.view.fantasia.FantasiaI18n.i18n; |
71 |
import static org.jsampler.view.fantasia.FantasiaPrefs.preferences; |
import static org.jsampler.view.fantasia.FantasiaPrefs.preferences; |
96 |
setDeviceName(i18n.getLabel("AudioDevicePane.lDevName", id, s)); |
setDeviceName(i18n.getLabel("AudioDevicePane.lDevName", id, s)); |
97 |
} |
} |
98 |
|
|
99 |
|
@Override |
100 |
protected void |
protected void |
101 |
destroyDevice() { |
destroyDevice() { |
102 |
final Task t = new Audio.DestroyDevice(getDeviceId()); |
final Task t = new Audio.DestroyDevice(getDeviceId()); |
253 |
validate(); |
validate(); |
254 |
} |
} |
255 |
|
|
256 |
|
@Override |
257 |
public void |
public void |
258 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
259 |
Object obj = cbChannel.getSelectedItem(); |
Object obj = cbChannel.getSelectedItem(); |
267 |
channelParamTable.getModel().setParameters(chn.getAllParameters()); |
channelParamTable.getModel().setParameters(chn.getAllParameters()); |
268 |
} |
} |
269 |
|
|
270 |
|
@Override |
271 |
public void |
public void |
272 |
itemStateChanged(ItemEvent e) { |
itemStateChanged(ItemEvent e) { |
273 |
boolean a = checkActive.isSelected(); |
boolean a = checkActive.isSelected(); |
274 |
if(a != audioDeviceModel.isActive()) audioDeviceModel.setBackendActive(a); |
if(a != audioDeviceModel.isActive()) audioDeviceModel.setBackendActive(a); |
275 |
} |
} |
276 |
|
|
277 |
|
@Override |
278 |
public void |
public void |
279 |
stateChanged(ChangeEvent e) { |
stateChanged(ChangeEvent e) { |
280 |
int c = (Integer)spinnerChannels.getValue(); |
int c = (Integer)spinnerChannels.getValue(); |
283 |
} |
} |
284 |
} |
} |
285 |
|
|
286 |
|
@Override |
287 |
public void |
public void |
288 |
settingsChanged(AudioDeviceEvent e) { |
settingsChanged(AudioDeviceEvent e) { |
289 |
int c = (Integer)spinnerChannels.getValue(); |
int c = (Integer)spinnerChannels.getValue(); |
306 |
if(cbChannel.getModel().getSize() > 0) cbChannel.setSelectedIndex(idx); |
if(cbChannel.getModel().getSize() > 0) cbChannel.setSelectedIndex(idx); |
307 |
} |
} |
308 |
|
|
309 |
|
@Override |
310 |
public void |
public void |
311 |
parameterChanged(ParameterEvent e) { |
parameterChanged(ParameterEvent e) { |
312 |
int c = cbChannel.getSelectedIndex(); |
int c = cbChannel.getSelectedIndex(); |