Subversion Repositories svn.mios

Compare Revisions

Ignore whitespace Rev 640 → Rev 641

/trunk/java/org/midibox/apps/miosstudiosid/MIOSStudioSID.java
1,5 → 1,7
package org.midibox.apps.miosstudiosid;
 
import java.util.Observable;
 
import org.midibox.apps.SIDV2librarian.SIDV2librarian;
 
public class MIOSStudioSID extends org.midibox.apps.miosstudio.MIOSStudio {
15,7 → 17,7
 
super.createDevices();
 
sidv2librarian = new SIDV2librarian(null);
sidv2librarian = new SIDV2librarian(null, null);
 
sidv2librarian.getSIDLibController().addObserver(this);
}
39,4 → 41,19
midiDeviceRouting.connectDevices(sidv2librarian
.getSysExControllerDevice(), miosStudioOutPort);
}
public void update(Observable observable, Object object) {
super.update(observable, object);
if (object == "Edit") {
 
boolean portsReleased = midiDeviceRouting.getPortsReleased();
 
if (!portsReleased) {
midiDeviceRouting.setPortsReleased(true);
midiDeviceRouting.setPortsReleased(false);
}
}
}
}