public class DeviceWorker extends MidicaWorker
This class is used to setup the MIDI devices in the background while a
WaitView is shown.
Setting up the MIDI devices may be time consuming because it includes loading a soundbank file and that file may be large.
The worker is executed in the background before the (blocking) setVisible() method of the (modal) waiting dialog is called. That causes the execution of
doInBackground() that sets up the devices.
After the work is finished,
MidicaWorker.done() is called and closes the waiting dialog.
|Modifier and Type||Field and Description|
|Constructor and Description|
Creates a worker that sets up MIDI devices in the background while a waiting dialog is shown.
|Modifier and Type||Method and Description|
Sets up the MIDI devices in the background.
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
private PlayerController playerController