58 |
import org.jsampler.event.SamplerEvent; |
import org.jsampler.event.SamplerEvent; |
59 |
import org.jsampler.event.SamplerListener; |
import org.jsampler.event.SamplerListener; |
60 |
|
|
61 |
|
import org.jsampler.view.fantasia.basic.*; |
62 |
import org.jsampler.view.std.JSChannelOutputRoutingDlg; |
import org.jsampler.view.std.JSChannelOutputRoutingDlg; |
63 |
|
|
64 |
import org.linuxsampler.lscp.AudioOutputDevice; |
import org.linuxsampler.lscp.AudioOutputDevice; |
576 |
* @param e A <code>MidiDeviceListEvent</code> |
* @param e A <code>MidiDeviceListEvent</code> |
577 |
* instance providing the event information. |
* instance providing the event information. |
578 |
*/ |
*/ |
579 |
|
@Override |
580 |
public void |
public void |
581 |
deviceAdded(MidiDeviceListEvent e) { |
deviceAdded(MidiDeviceListEvent e) { |
582 |
cbMidiDevice.addItem(e.getMidiDeviceModel().getDeviceInfo()); |
cbMidiDevice.addItem(e.getMidiDeviceModel().getDeviceInfo()); |
587 |
* @param e A <code>MidiDeviceListEvent</code> |
* @param e A <code>MidiDeviceListEvent</code> |
588 |
* instance providing the event information. |
* instance providing the event information. |
589 |
*/ |
*/ |
590 |
|
@Override |
591 |
public void |
public void |
592 |
deviceRemoved(MidiDeviceListEvent e) { |
deviceRemoved(MidiDeviceListEvent e) { |
593 |
cbMidiDevice.removeItem(e.getMidiDeviceModel().getDeviceInfo()); |
cbMidiDevice.removeItem(e.getMidiDeviceModel().getDeviceInfo()); |
598 |
* @param e An <code>AudioDeviceListEvent</code> |
* @param e An <code>AudioDeviceListEvent</code> |
599 |
* instance providing the event information. |
* instance providing the event information. |
600 |
*/ |
*/ |
601 |
|
@Override |
602 |
public void |
public void |
603 |
entryAdded(ListEvent<AudioDeviceModel> e) { |
entryAdded(ListEvent<AudioDeviceModel> e) { |
604 |
cbAudioDevice.addItem(e.getEntry().getDeviceInfo()); |
cbAudioDevice.addItem(e.getEntry().getDeviceInfo()); |
609 |
* @param e An <code>AudioDeviceListEvent</code> |
* @param e An <code>AudioDeviceListEvent</code> |
610 |
* instance providing the event information. |
* instance providing the event information. |
611 |
*/ |
*/ |
612 |
|
@Override |
613 |
public void |
public void |
614 |
entryRemoved(ListEvent<AudioDeviceModel> e) { |
entryRemoved(ListEvent<AudioDeviceModel> e) { |
615 |
cbAudioDevice.removeItem(e.getEntry().getDeviceInfo()); |
cbAudioDevice.removeItem(e.getEntry().getDeviceInfo()); |
616 |
} |
} |
617 |
|
|
618 |
|
@Override |
619 |
public void |
public void |
620 |
settingsChanged(MidiDeviceEvent e) { |
settingsChanged(MidiDeviceEvent e) { |
621 |
if(isUpdate()) { |
if(isUpdate()) { |
640 |
|
|
641 |
private class MapListListener implements ListListener<MidiInstrumentMap> { |
private class MapListListener implements ListListener<MidiInstrumentMap> { |
642 |
/** Invoked when a new MIDI instrument map is added to a list. */ |
/** Invoked when a new MIDI instrument map is added to a list. */ |
643 |
|
@Override |
644 |
public void |
public void |
645 |
entryAdded(ListEvent<MidiInstrumentMap> e) { |
entryAdded(ListEvent<MidiInstrumentMap> e) { |
646 |
cbInstrumentMap.insertItemAt(e.getEntry(), cbInstrumentMap.getItemCount()); |
cbInstrumentMap.insertItemAt(e.getEntry(), cbInstrumentMap.getItemCount()); |
649 |
} |
} |
650 |
|
|
651 |
/** Invoked when a new MIDI instrument map is removed from a list. */ |
/** Invoked when a new MIDI instrument map is removed from a list. */ |
652 |
|
@Override |
653 |
public void |
public void |
654 |
entryRemoved(ListEvent<MidiInstrumentMap> e) { |
entryRemoved(ListEvent<MidiInstrumentMap> e) { |
655 |
cbInstrumentMap.removeItem(e.getEntry()); |
cbInstrumentMap.removeItem(e.getEntry()); |